Skip to content

Commit dc59101

Browse files
authored
Merge pull request #578 from ukkopahis/timescaledb-broken
Timescaledb: fix broken template
2 parents 229dab1 + 5015f8b commit dc59101

File tree

4 files changed

+21
-129
lines changed

4 files changed

+21
-129
lines changed

.templates/timescaledb/build.py

Lines changed: 0 additions & 116 deletions
This file was deleted.

.templates/timescaledb/service.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
timescaledb:
2-
container_name: timescaledb
3-
image: timescale/timescaledb:latest-pg12
4-
restart: unless-stopped
5-
environment:
6-
POSTGRES_USER=timescaleuser
7-
POSTGRES_PASSWORD=%randomPassword%
8-
POSTGRES_DB=postdb
9-
ports:
10-
- "5432:5432"
11-
volumes:
12-
- ./volumes/timescaledb/data:/var/lib/postgresql/data
1+
timescaledb:
2+
container_name: timescaledb
3+
image: timescale/timescaledb:latest-pg12
4+
restart: unless-stopped
5+
environment:
6+
- POSTGRES_USER=${IOTSTACK_TIMESCALEDB_USER:-postgres}
7+
- POSTGRES_PASSWORD={IOTSTACK_TIMESCALEDB_INITIAL_PASSWORD:-IOtSt4ckTim3Scale}
8+
- POSTGRES_DB=postdb
9+
ports:
10+
- ${IOTSTACK_TIMESCALEDB_PORT_INT:-5433}:5432
11+
volumes:
12+
- ./volumes/timescaledb/data:/var/lib/postgresql/data
1313

docs/Basic_setup/Default-Configs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Do note that the ports listed are not all of the ports containers use. They are
3838
| rtl_433 | *none* | *none* | *none* | No |
3939
| tasmoadmin | *none* | *none* | 8088 | No |
4040
| telegraf | *none* | *none* | *none* | No |
41-
| timescaledb | timescaleuser | IOtSt4ckTim3Scale | *none* | No |
41+
| timescaledb | postgres | IOtSt4ckTim3Scale | *none* | No |
4242
| transmission | *none* | *none* | 9091 | No |
4343
| webthingsio_gateway | *none* | *none* | 4060 | No |
4444
| zigbee2mqtt | *none* | *none* | *none* | No |

docs/Containers/Timescaledb.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
### Default port changed
3+
4+
In order to avoid port conflict with PostgreSQL, the public database port is
5+
mapped to **5433** using Docker.
6+
7+
Cross-container access from other containers still works as previously:
8+
`timescaledb:5432`.

0 commit comments

Comments
 (0)