Files
2026-03-03 22:43:26 +03:00

47 lines
1012 B
YAML

# compose.yml
services:
postgresql:
container_name: postgresql
environment:
POSTGRES_DB: dolgolet
POSTGRES_PASSWORD: dolgolet
POSTGRES_USER: dolgolet
TZ: Europe/Moscow
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dolgolet -d dolgolet"]
timeout: 10s
interval: 15s
retries: 7
start_period: 12s
image: postgres:18
networks:
- my-net
restart: always
volumes:
- /mnt/dbdata/postgres:/var/lib/postgresql
medodston3health:
depends_on:
postgresql:
condition: service_healthy
image: medodston3health:latest
container_name: medodston3health
volumes:
- /mnt/dbdata/attachments:/app/src/attachments
restart: unless-stopped
ports:
- "80:80"
networks:
- my-net
environment:
TZ: Europe/Moscow
DB_HOST: postgresql
DB_PORT: 5432
DB_USER: dolgolet
DB_PASSWORD: dolgolet
DB_NAME: dolgolet
networks:
my-net:
external: true