rhythm-backend/compose.prod.yaml
Dmitri 534c6ebf2f
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 9m40s
added example .env
2026-04-28 19:13:52 +02:00

36 lines
760 B
YAML

services:
api-prod:
image: git.kanopo.dev/rhythm/rhythm-backend:latest
container_name: rhythm-api-prod
restart: unless-stopped
ports:
- "6969:6969"
env_file:
- ".env"
depends_on:
db-prod:
condition: service_healthy
profiles:
- prod
db-prod:
image: postgres:18.0-alpine
restart: unless-stopped
container_name: rhythm-db-prod
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
volumes:
- db:/var/lib/postgresql/data
profiles:
- prod
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME} -d ${DB_NAME}"]
interval: 5s
timeout: 10s
retries: 3
volumes:
db: