26 lines
886 B
YAML
26 lines
886 B
YAML
name: archipelago
|
|
services:
|
|
web:
|
|
image: ${CADDY_IMAGE:?Set a pinned Caddy image digest or local image ID}
|
|
restart: unless-stopped
|
|
command: [caddy, run, --config, /etc/caddy/Caddyfile, --adapter, caddyfile]
|
|
read_only: true
|
|
security_opt: [no-new-privileges:true]
|
|
cap_drop: [ALL]
|
|
# The existing Caddy binary carries this file capability even on port 8080.
|
|
cap_add: [NET_BIND_SERVICE]
|
|
tmpfs: [/tmp, /config, /data]
|
|
ports:
|
|
- "${LISTEN_ADDRESS:-127.0.0.1}:${LISTEN_PORT:-8098}:8080"
|
|
volumes:
|
|
- ./deploy/Caddyfile:/etc/caddy/Caddyfile:ro
|
|
- ./portal:/srv/portal:ro
|
|
- ${PUBLIC_ROOT:?Set public artifact root}:/srv/artifacts:ro
|
|
networks: [web]
|
|
healthcheck:
|
|
test: [CMD, wget, -q, -O, /dev/null, http://127.0.0.1:8080/archipelago/healthz]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
networks:
|
|
web: {}
|