so. many. changes. (sorry)
This commit is contained in:
parent
d445a13646
commit
b24cbec4fb
20 changed files with 1692 additions and 161 deletions
|
|
@ -2,28 +2,24 @@ services:
|
|||
api:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
- "8000:80"
|
||||
environment:
|
||||
# Redis configuration
|
||||
- REDIS_HOST=valkey
|
||||
- REDIS_PORT=6379
|
||||
# Docker environment flag
|
||||
- DOCKER_CONTAINER=1
|
||||
# Override environment for production
|
||||
- ENVIRONMENT=production
|
||||
env_file: .env
|
||||
depends_on:
|
||||
- valkey
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
|
||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/')"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
valkey:
|
||||
image: valkey/valkey:7-alpine
|
||||
image: valkey/valkey:8-alpine
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "valkey-cli", "ping"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue