AnyBot/relay/docker-compose.yml

28 lines
749 B
YAML

# 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: ""
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: