Files
HospitalAssistantBackend/docker-compose.yml
Miwory d64320426b
All checks were successful
Build And Push / publish (push) Successful in 1m29s
Правки
2025-09-24 05:34:40 +03:00

36 lines
755 B
YAML

name: HospitalAssistantAPI
x-app-common: &app-common
build:
context: .
target: production
tty: true
restart: unless-stopped
stop_signal: SIGINT
env_file:
- .env
environment:
DEBUG: false
DATABASE_URL: "postgresql://postgres:example@db:5432/postgres"
REDIS_URL: "redis://valkey:6379/0"
volumes:
- "./container/certt.cer:/var/opt/cprocsp/keys/cert.cer"
- "./container/cont:/app/cont"
services:
valkey:
image: valkey/valkey:alpine
restart: unless-stopped
ports:
- ${VALKEY_PORT:-6380}:6379
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 10s
retries: 5
web:
<<: *app-common
ports:
- "${APP_PORT:-6767}:${APP_PORT:-6767}"