# Waifu Bridge: the web console and the worker that talks to your Codies. # # Start: docker compose up -d # Open: http://:8080 # Update: docker compose pull && docker compose up -d # # Everything you set up is kept in the "bridge-data" volume. # Guide: https://waifubridge.com/guide.html services: web: image: ghcr.io/bobpeters/waifu-bridge:latest restart: unless-stopped ports: - "${BRIDGE_PORT:-8080}:8080" environment: BRIDGE_ROLE: web TZ: "${TZ:-UTC}" volumes: - bridge-data:/var/lib/bridge healthcheck: test: ["CMD", "php", "-r", "exit(@file_get_contents('http://127.0.0.1:8080/up') === false ? 1 : 0);"] interval: 15s timeout: 5s retries: 5 start_period: 30s worker: image: ghcr.io/bobpeters/waifu-bridge:latest restart: unless-stopped command: ["php", "artisan", "codie:serve"] environment: BRIDGE_ROLE: worker TZ: "${TZ:-UTC}" volumes: - bridge-data:/var/lib/bridge depends_on: web: condition: service_healthy stop_grace_period: 20s volumes: bridge-data: