Skip to content

Commit 5b634b3

Browse files
author
Anze
committed
Use TimescaleDB instead of base PostgreSQL
1 parent 03e9541 commit 5b634b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ services:
3636

3737

3838
db:
39-
image: postgres:12.1-alpine
39+
image: timescale/timescaledb:latest-pg12
4040
container_name: grafolean-snmp-db
4141
volumes:
4242
# You should always save DB data to a host directory unless you are prepared to lose it. By default
@@ -50,7 +50,7 @@ services:
5050
- POSTGRES_PASSWORD=${DB_PASS:-admin}
5151
restart: always
5252
healthcheck:
53-
test: ["CMD-SHELL", "pg_isready -h db -t 1 -q"]
53+
test: ["CMD-SHELL", "pg_isready -h db -U ${DB_USER:-admin} -t 1 -q"]
5454
interval: 10s
5555
timeout: 5s
5656
retries: 3

0 commit comments

Comments
 (0)