Skip to content

Commit 32a52ed

Browse files
warpsql/docker-compose: Added pgwatch2 service
1. Added pgwatch2 service to the Docker Compose file. 2. Configured pgwatch2 to use the cybertec/pgwatch2-postgres:latest image. 3. Exposed port 3000 for the pgwatch2 service. 4. Set up PW2_ADHOC_CONN_STR environment variable for pgwatch2 to connect to the timescaledb service. 5. Configured pgwatch2 to restart automatically in case of failure. 6. Added timescaledb as a dependency for pgwatch2 to ensure timescaledb starts before pgwatch2. Fixes: #52
1 parent 44b5ed4 commit 32a52ed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docker-compose.yml

+10
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,13 @@ services:
3333
# HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
3434
HASURA_GRAPHQL_MIGRATIONS_DISABLE_TRANSACTION: "true"
3535
HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets
36+
37+
pgwatch2:
38+
image: cybertec/pgwatch2-postgres:latest
39+
ports:
40+
- "3000:3000"
41+
environment:
42+
PW2_ADHOC_CONN_STR: "postgresql://timescaledb:postgrespassword@timescaledb:5432/postgres?sslmode=disable"
43+
depends_on:
44+
- "timescaledb"
45+
restart: always

0 commit comments

Comments
 (0)