Skip to content

Commit

Permalink
add docker-compose again
Browse files Browse the repository at this point in the history
  • Loading branch information
gusinacio committed Jun 30, 2023
1 parent f201bb2 commit 415f09c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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"
POSTGRES_HOST_AUTH_METHOD: md5
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

0 comments on commit 415f09c

Please sign in to comment.