fp/services/our/compose.db.yaml

32 lines
598 B
YAML

services:
pgadmin:
image: dpage/pgadmin4:latest
env_file: ./.env
ports:
- target: 5050
published: 8095
protocol: tcp
mode: ingress
postgres:
image: postgres:17
env_file: ./.env
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
retries: 5
start_period: 10s
timeout: 10s
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 5
window: 60s
volumes:
pgdata: