This commit is contained in:
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal file
@ -0,0 +1,34 @@
|
||||
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}"
|
||||
Reference in New Issue
Block a user