version: "3.9" services: nginx: image: nginx:latest ports: - "3000:80" volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro depends_on: - frontend - backend restart: always frontend: image: git.aranroig.com/syndria98/dragonroll-frontend:latest restart: always backend: image: git.aranroig.com/syndria98/dragonroll-backend:latest environment: # Shared service secret the Discord bot authenticates with # (header x-dragonroll-discord-bot-secret). Must match the bot's value. DRAGONROLL_DISCORD_BOT_SECRET: ${DRAGONROLL_DISCORD_BOT_SECRET} # Public address of the frontend: the /discord/authorize link people # open from Discord is built from this. DRAGONROLL_FRONTEND_URL: ${DRAGONROLL_FRONTEND_URL:-https://dragonroll.aranroig.com} restart: always discord-bot: image: git.aranroig.com/syndria98/dragonroll-discord-bot:latest environment: DISCORD_TOKEN: ${DISCORD_TOKEN} DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID} DRAGONROLL_DISCORD_BOT_SECRET: ${DRAGONROLL_DISCORD_BOT_SECRET} # Must stay the public https address (through nginx) and not # http://backend:5000/api: character portraits are rendered in Discord # from /public/. DRAGONROLL_API_URL: ${DRAGONROLL_API_URL:-https://dragonroll.aranroig.com/api} DRAGONROLL_FRONTEND_URL: ${DRAGONROLL_FRONTEND_URL:-https://dragonroll.aranroig.com} depends_on: - backend restart: always