24 lines
612 B
YAML
24 lines
612 B
YAML
services:
|
|
apc:
|
|
build: .
|
|
ports:
|
|
- '127.0.0.1:8000:8000'
|
|
environment:
|
|
APC_ADMIN_TOKEN: ${APC_ADMIN_TOKEN:?Generate APC_ADMIN_TOKEN in .env first}
|
|
APC_ORIGIN: ${APC_ORIGIN:-http://localhost:8000}
|
|
volumes:
|
|
- apc-data:/data
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp
|
|
cap_drop: [ALL]
|
|
security_opt: [no-new-privileges:true]
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: [CMD, python, -c, "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/healthz', timeout=3)"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
volumes:
|
|
apc-data:
|