# docker compose up -d (run in app/relay; edit Caddyfile first) services: relay: build: context: .. dockerfile: relay/Dockerfile restart: unless-stopped environment: # Set to let more people sign up (the first account is always allowed). # Your public address (for the links of sites the bots publish), e.g. https://anybot.example.com ANYBOT_RELAY_PUBLIC_URL: "${ANYBOT_RELAY_PUBLIC_URL:-}" ANYBOT_RELAY_INVITE: "" # Caddy is in front (nothing else reaches this container): the caller's address is the one # Caddy reports. Without this every login attempt counts as coming from Caddy, and a few # wrong passwords from anyone lock that account for everyone. RELAY_TRUST_PROXY: "1" volumes: - relay-data:/data caddy: image: caddy:2 restart: unless-stopped ports: - "80:80" - "443:443" volumes: - ./Caddyfile:/etc/caddy/Caddyfile:ro - caddy-data:/data depends_on: [relay] volumes: relay-data: caddy-data: