mirror of
https://github.com/okxlin/appstore.git
synced 2026-09-24 00:01:00 +00:00
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
services:
|
|
webclaw:
|
|
image: "ghcr.io/0xmassi/webclaw:latest"
|
|
container_name: ${CONTAINER_NAME}
|
|
restart: unless-stopped
|
|
command:
|
|
- webclaw-server
|
|
user: "65534:65534"
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp:rw,nodev,noexec,nosuid,size=16m
|
|
cap_drop:
|
|
- ALL
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
networks:
|
|
- 1panel-network
|
|
ports:
|
|
- "${PANEL_APP_BIND_ADDRESS}:${PANEL_APP_PORT_HTTP}:3000"
|
|
environment:
|
|
- WEBCLAW_HOST=0.0.0.0
|
|
- WEBCLAW_PORT=3000
|
|
- WEBCLAW_API_KEY=${WEBCLAW_API_KEY}
|
|
- WEBCLAW_CLOUD_API_KEY=${WEBCLAW_CLOUD_API_KEY}
|
|
- SERPER_API_KEY=${SERPER_API_KEY}
|
|
healthcheck:
|
|
test:
|
|
- CMD
|
|
- bash
|
|
- -c
|
|
- >-
|
|
exec 3<>/dev/tcp/127.0.0.1/3000 &&
|
|
printf 'GET /health HTTP/1.0\r\nHost: localhost\r\n\r\n' >&3 &&
|
|
grep -q '"status":"ok"' <&3
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
labels:
|
|
createdBy: Apps
|
|
|
|
networks:
|
|
1panel-network:
|
|
external: true
|