62 lines
1.3 KiB
YAML
62 lines
1.3 KiB
YAML
|
|
services:
|
|
|
|
|
|
# caddy:
|
|
# image: caddy:alpine
|
|
# ports:
|
|
# - "8081:80"
|
|
# volumes:
|
|
# - ./public:/srv
|
|
# - ./Caddyfile:/etc/caddy/Caddyfile
|
|
|
|
|
|
postgres:
|
|
container_name: our-postgres
|
|
image: postgres:17
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: ${DB_USER}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_DB: ${DB_NAME}
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD", "pg_isready", "-U", "postgres"]
|
|
interval: 10s
|
|
retries: 5
|
|
start_period: 10s
|
|
timeout: 10s
|
|
|
|
pgweb:
|
|
container_name: out-pgweb
|
|
image: sosedoff/pgweb
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
environment:
|
|
PGWEB_DATABASE_URL: postgres://${DB_USER}:${DB_PASSWORD}@postgres:5432/${DB_NAME}?sslmode=disable
|
|
ports:
|
|
- "8091:8081"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8081"]
|
|
interval: 10s
|
|
retries: 5
|
|
start_period: 10s
|
|
timeout: 10s
|
|
|
|
# pgadmin:
|
|
# image: dpage/pgadmin4:latest
|
|
# environment:
|
|
# PGADMIN_LISTEN_PORT: 5050
|
|
# PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
|
|
# PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
|
|
# PGADMIN_DISABLE_POSTFIX: true
|
|
# ports:
|
|
# - "5050:5050"
|
|
|
|
|
|
volumes:
|
|
pgdata: |