Files
heala-backend/docker-compose.yml
T
2026-07-07 17:59:12 +03:30

49 lines
735 B
YAML

version: "3.9"
services:
postgres:
image: postgres:17
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DATABASE_USER}"]
interval: 10s
timeout: 5s
retries: 5
container_name: postgres
restart: unless-stopped
env_file:
- .env.production
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASS}
POSTGRES_DB: ${DATABASE_NAME}
volumes:
- postgres_data:/var/lib/postgresql/data
app:
build: .
container_name: nest-app
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
env_file:
- .env.production
ports:
- "8000:8000"
volumes:
postgres_data: