Files
HospitalAssistantBackend/docker-compose.yml
Miwory 967bb8d936
Some checks failed
Build And Push / publish (push) Failing after 3m15s
first commit
2025-09-24 04:11:55 +03:00

35 lines
706 B
YAML

name: HospitalAssistantAPI
x-app-common: &app-common
build:
context: .
target: production
tty: true
restart: unless-stopped
stop_signal: SIGINT
env_file:
- .test.env
environment:
DEBUG: false
DATABASE_URL: "postgresql://postgres:example@db:5432/postgres"
REDIS_URL: "redis://valkey:6379/0"
volumes:
- "./container:/var/opt/cprocsp/keys"
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}"