All checks were successful
Build and Deploy Nuxt / build (push) Successful in 1m51s
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
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 <DRAGONROLL_API_URL>/public/<filename>.
|
|
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
|