mirror of
https://github.com/okxlin/appstore.git
synced 2026-10-03 00:00:15 +00:00
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
services:
|
|
zoraxy:
|
|
image: "zoraxydocker/zoraxy:v3.3.4@sha256:c64ed57e10631d8f7482ce1ed6b337e653052a05646bd5dd77b009dcf0ae786d"
|
|
container_name: ${CONTAINER_NAME}
|
|
restart: unless-stopped
|
|
user: "0:0"
|
|
working_dir: /opt/zoraxy/config
|
|
entrypoint:
|
|
- /bin/sh
|
|
- /opt/1panel/entrypoint.sh
|
|
networks:
|
|
- 1panel-network
|
|
ports:
|
|
- "${PANEL_APP_PORT_HTTP}:8000"
|
|
- "${PANEL_APP_PORT_PROXY_HTTP}:80"
|
|
- "${PANEL_APP_PORT_PROXY_HTTPS}:443"
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- CHOWN
|
|
- DAC_OVERRIDE
|
|
- KILL
|
|
- SETUID
|
|
- SETGID
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp:nodev,noexec,nosuid,size=64M
|
|
healthcheck:
|
|
test:
|
|
- CMD
|
|
- python3
|
|
- -c
|
|
- >-
|
|
import urllib.request;
|
|
raise SystemExit(0 if urllib.request.urlopen(
|
|
'http://127.0.0.1:8000/api/auth/userCount', timeout=5
|
|
).read().strip() == b'1' else 1)
|
|
interval: 30s
|
|
timeout: 10s
|
|
start_period: 30s
|
|
retries: 3
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- "${APP_DATA_DIR}:/data"
|
|
- "${APP_DATA_DIR}/config:/opt/zoraxy/config"
|
|
- "./scripts/entrypoint.sh:/opt/1panel/entrypoint.sh:ro"
|
|
labels:
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
1panel-network:
|
|
external: true
|