refactor: migrate browser gateway to native xvfb

This commit is contained in:
2026-09-18 16:50:18 +08:00
parent 7e3808cf4c
commit e8f2c192ba
86 changed files with 6104 additions and 5323 deletions
+2 -28
View File
@@ -21,9 +21,9 @@ services:
- /tmp:size=16m,noexec,nosuid,nodev
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
docker-gateway:
condition: service_healthy
postgres:
condition: service_healthy
networks: [control]
@@ -65,32 +65,6 @@ services:
networks: [control]
restart: unless-stopped
docker-gateway:
build: .
stop_grace_period: 45s
command: ["python3", "-m", "cmd.docker_gateway.gateway"]
labels:
io.creatorhub.gateway-member: "true"
environment:
BROWSER_NETWORK: creatorhub_browser
GATEWAY_TOKEN: ${GATEWAY_TOKEN:-dev-creatorhub-gateway-token}
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
group_add:
- "${DOCKER_GID:?required}"
healthcheck:
test: [CMD, wget, -q, -O, /dev/null, http://127.0.0.1:8081/healthz]
interval: 2s
timeout: 2s
retries: 15
read_only: true
tmpfs:
- /tmp:size=16m,noexec,nosuid,nodev
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
networks: [control]
restart: unless-stopped
networks:
control:
name: creatorhub_control