# 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