18 lines
483 B
YAML
18 lines
483 B
YAML
services:
|
|
image-drop:
|
|
build: .
|
|
container_name: image-drop
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ./data:/image_drop/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "python - <<'PY'\nimport urllib.request,sys\ntry:\n urllib.request.urlopen('http://localhost:8080/').read(); sys.exit(0)\nexcept Exception:\n sys.exit(1)\nPY"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|