# Optional development/pilot overlay, never selected by the production recipe. # Requires host egress rules; an isolated bridge alone is not an egress firewall. services: app: environment: PAGESWIKI_GECKO_RELAY: http://gecko-relay:3012 PAGESWIKI_GECKO_KEY_FILE: /run/secrets/gecko-key volumes: - ${PAGESWIKI_GECKO_KEY_PATH:?Set absolute relay key path}:/run/secrets/gecko-key:ro networks: default: {} gecko-front: {} gecko-relay: build: context: . dockerfile: Dockerfile.gecko-relay image: pageswiki-gecko-relay:dev environment: PAGESWIKI_GECKO_KEY_FILE: /run/secrets/gecko-key volumes: - ${PAGESWIKI_GECKO_KEY_PATH:?Set absolute relay key path}:/run/secrets/gecko-key:ro - ${PAGESWIKI_GECKO_ASSETS_DIR:?Set verified Gecko dist directory}:/gecko:ro networks: gecko-front: {} gecko-egress: {} read_only: true cap_drop: [ALL] security_opt: [no-new-privileges:true] mem_limit: 256m cpus: 0.5 pids_limit: 64 restart: unless-stopped healthcheck: test: [CMD, /usr/local/bin/gecko-relay, --status] interval: 30s timeout: 3s retries: 3 networks: gecko-front: internal: true ipam: config: - subnet: ${PAGESWIKI_GECKO_FRONT_SUBNET:-172.24.0.0/27} gecko-egress: ipam: config: - subnet: ${PAGESWIKI_GECKO_EGRESS_SUBNET:-172.24.0.32/27}