2021-03-24 22:11:59 +00:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
app:
|
2021-04-27 18:16:05 +00:00
|
|
|
image: thecodingmachine/workadventure-front:v1.3.0
|
2021-03-24 22:11:59 +00:00
|
|
|
networks:
|
|
|
|
- proxy
|
2021-04-27 18:16:05 +00:00
|
|
|
environment:
|
|
|
|
DEBUG_MODE: "$DEBUG_MODE"
|
|
|
|
JITSI_URL: $JITSI_URL
|
|
|
|
JITSI_PRIVATE_MODE: "$JITSI_PRIVATE_MODE"
|
|
|
|
API_URL: "pusher.${DOMAIN}"
|
|
|
|
TURN_SERVER: "${TURN_SERVER}"
|
|
|
|
TURN_USER: "${TURN_USER}"
|
|
|
|
TURN_PASSWORD: "${TURN_PASSWORD}"
|
|
|
|
START_ROOM_URL: "${START_ROOM_URL}"
|
2021-03-24 22:11:59 +00:00
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2021-04-27 18:16:05 +00:00
|
|
|
- "traefik.http.services.${STACK_NAME}-app.loadbalancer.server.port=80"
|
|
|
|
- "traefik.http.routers.${STACK_NAME}-app.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
|
|
|
- "traefik.http.routers.${STACK_NAME}-app.entrypoints=web-secure"
|
|
|
|
- "traefik.http.routers.${STACK_NAME}-app.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
|
|
- coop-cloud.${STACK_NAME}.app.version=master-ffce89aa
|
|
|
|
pusher:
|
|
|
|
image: thecodingmachine/workadventure-pusher:master
|
|
|
|
command: yarn run runprod
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
environment:
|
|
|
|
SECRET_JITSI_KEY: "$SECRET_JITSI_KEY"
|
|
|
|
SECRET_KEY: yourSecretKey
|
|
|
|
API_URL: back:50051
|
|
|
|
JITSI_URL: $JITSI_URL
|
|
|
|
JITSI_ISS: $JITSI_ISS
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.services.${STACK_NAME}-pusher.loadbalancer.server.port=8080"
|
|
|
|
- "traefik.http.routers.${STACK_NAME}-pusher.rule=Host(`pusher.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.${STACK_NAME}-pusher.entrypoints=web-secure"
|
|
|
|
- "traefik.http.routers.${STACK_NAME}-pusher.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
|
|
- coop-cloud.${STACK_NAME}.pusher.version=master-b64e57f5
|
|
|
|
back:
|
|
|
|
image: thecodingmachine/workadventure-back:v1.3.0
|
|
|
|
command: yarn run runprod
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
environment:
|
|
|
|
SECRET_JITSI_KEY: "$SECRET_JITSI_KEY"
|
|
|
|
ADMIN_API_TOKEN: "$ADMIN_API_TOKEN"
|
|
|
|
ADMIN_API_URL: "$ADMIN_API_URL"
|
|
|
|
JITSI_URL: $JITSI_URL
|
|
|
|
JITSI_ISS: $JITSI_ISS
|
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.services.${STACK_NAME}-back.loadbalancer.server.port=8080"
|
|
|
|
- "traefik.http.routers.${STACK_NAME}-back.rule=Host(`api.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.${STACK_NAME}-back.entrypoints=web-secure"
|
|
|
|
- "traefik.http.routers.${STACK_NAME}-back.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
|
|
|
- coop-cloud.${STACK_NAME}.back.version=master-bfadc487
|
2021-03-24 22:11:59 +00:00
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|