add astra draft
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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:
|
||||
Reference in New Issue
Block a user