Compare commits

..

2 Commits

Author SHA1 Message Date
root
e5bab51f98 Remove obsolete compose version field 2026-03-28 17:49:06 +08:00
root
ab01bb7cb9 Fix docker health check endpoint 2026-03-28 17:46:53 +08:00

View File

@@ -1,5 +1,3 @@
version: '3.8'
services: services:
app: app:
build: . build: .
@@ -12,8 +10,8 @@ services:
- .env - .env
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"] test: ["CMD", "python", "-c", "from urllib.request import urlopen; urlopen('http://localhost:8000/admin/api/health', timeout=5).read()"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
start_period: 10s start_period: 10s