2022-06-28 06:31:57 +03:00
|
|
|
---
|
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
container_name: pgweb-postgres
|
|
|
|
image: postgres:14
|
|
|
|
ports:
|
|
|
|
- 5433:5432
|
|
|
|
volumes:
|
|
|
|
- data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: pgweb
|
|
|
|
POSTGRES_PASSWORD: pgweb
|
|
|
|
POSTGRES_USER: pgweb
|
|
|
|
healthcheck:
|
|
|
|
test: pg_isready -U pgweb -h 127.0.0.1
|
|
|
|
interval: 5s
|
|
|
|
networks:
|
|
|
|
- pgweb
|
|
|
|
|
|
|
|
pgweb:
|
|
|
|
container_name: pgweb
|
|
|
|
image: sosedoff/pgweb:latest
|
2023-04-01 02:55:59 +03:00
|
|
|
build: .
|
2022-06-28 06:31:57 +03:00
|
|
|
environment:
|
2023-02-02 21:48:42 +03:00
|
|
|
PGWEB_DATABASE_URL: postgres://pgweb:pgweb@pgweb-postgres:5432/pgweb?sslmode=disable
|
2022-06-28 06:31:57 +03:00
|
|
|
ports:
|
|
|
|
- 8081:8081
|
|
|
|
networks:
|
|
|
|
- pgweb
|
|
|
|
depends_on:
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
2022-08-19 17:22:16 +03:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-vz", "127.0.0.1", "8081"]
|
|
|
|
interval: 5s
|
2022-06-28 06:31:57 +03:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
data:
|
|
|
|
name: pgweb_postgres
|
|
|
|
|
|
|
|
networks:
|
|
|
|
pgweb:
|
|
|
|
name: pgweb
|