forked from streamingfast/substreams-sink-sql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (34 loc) · 1.04 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: "3"
services:
postgres:
container_name: postgres-ssp
image: postgres:14
ports:
- "5432:5432"
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
#command: ["postgres", "-cshared_preload_libraries=pg_stat_statements", "-clog_statement=all"]
environment:
POSTGRES_USER: dev-node
POSTGRES_PASSWORD: insecure-change-me-in-prod
POSTGRES_DB: dev-node
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
volumes:
- ./devel/data/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "5432"]
interval: 30s
timeout: 10s
retries: 15
pgweb:
container_name: pgweb-ssp
image: sosedoff/pgweb:0.11.12
restart: on-failure
ports:
- "8081:8081"
command: ["pgweb", "--bind=0.0.0.0", "--listen=8081", "--binary-codec=hex"]
links:
- postgres:postgres
environment:
- DATABASE_URL=postgres://dev-node:insecure-change-me-in-prod@postgres:5432/dev-node?sslmode=disable
depends_on:
- postgres