docekr
This commit is contained in:
+17
-3
@@ -1,12 +1,26 @@
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
build:
|
||||
context: .
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "${APP_HOST_PORT:-8000}:${APP_PORT:-8000}"
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
stop_grace_period: 30s
|
||||
volumes:
|
||||
- .:/app
|
||||
- ./instance:/app/instance
|
||||
- ./data:/app/data
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- >
|
||||
python -c "import os, urllib.request;
|
||||
urllib.request.urlopen(
|
||||
'http://127.0.0.1:' + os.getenv('APP_PORT', '8000') + '/health',
|
||||
timeout=5)"
|
||||
interval: 30s
|
||||
timeout: 6s
|
||||
retries: 3
|
||||
start_period: 20s
|
||||
|
||||
|
||||
Reference in New Issue
Block a user