Files
appstore/apps/anubis/latest/docker-compose.yml
T
2026-08-01 03:36:15 +08:00

43 lines
1.2 KiB
YAML

services:
anubis:
image: "ghcr.io/techarohq/anubis:latest"
container_name: ${CONTAINER_NAME}
restart: unless-stopped
user: "1000:1000"
networks:
- 1panel-network
ports:
- "${PANEL_APP_BIND_ADDRESS}:${PANEL_APP_PORT_HTTP}:8080"
environment:
- BIND=:8080
- DIFFICULTY=${ANUBIS_DIFFICULTY}
- TARGET=${ANUBIS_TARGET}
- REDIRECT_DOMAINS=${ANUBIS_REDIRECT_DOMAINS}
- USE_REMOTE_ADDRESS=${ANUBIS_USE_REMOTE_ADDRESS}
- SERVE_ROBOTS_TXT=${ANUBIS_SERVE_ROBOTS}
- COOKIE_SECURE=${ANUBIS_COOKIE_SECURE}
- COOKIE_HTTP_ONLY=true
- COOKIE_SAME_SITE=Lax
- WEBMASTER_EMAIL=${ANUBIS_WEBMASTER_EMAIL}
- ED25519_PRIVATE_KEY_HEX=${ANUBIS_ED25519_PRIVATE_KEY_HEX}
- METRICS_BIND=127.0.0.1:9090
read_only: true
tmpfs:
- /tmp:rw,nosuid,nodev,noexec,size=16m,uid=1000,gid=1000,mode=1777
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "/ko-app/anubis", "--healthcheck", "--metrics-bind", ":9090"]
interval: 15s
timeout: 5s
retries: 8
start_period: 5s
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true