2021-02-02 11:19:24 +01:00
|
|
|
version: "3.3"
|
2021-01-08 00:20:27 +01:00
|
|
|
services:
|
|
|
|
reverse-proxy:
|
2021-02-02 11:19:24 +01:00
|
|
|
image: traefik:v2.3
|
2021-01-08 00:20:27 +01:00
|
|
|
command:
|
2021-02-02 11:19:24 +01:00
|
|
|
- --log.level=WARN
|
|
|
|
#- --api.insecure=true
|
2021-01-08 00:20:27 +01:00
|
|
|
- --providers.docker
|
|
|
|
- --entryPoints.web.address=:80
|
2021-02-02 11:19:24 +01:00
|
|
|
- --entrypoints.web.http.redirections.entryPoint.to=websecure
|
|
|
|
- --entrypoints.web.http.redirections.entryPoint.scheme=https
|
2021-01-08 00:20:27 +01:00
|
|
|
- --entryPoints.websecure.address=:443
|
2021-02-19 23:10:48 +01:00
|
|
|
- --certificatesresolvers.myresolver.acme.email=${ACME_EMAIL}
|
2021-02-02 11:19:24 +01:00
|
|
|
- --certificatesresolvers.myresolver.acme.storage=/acme.json
|
|
|
|
# used during the challenge
|
|
|
|
- --certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web
|
2021-01-08 00:20:27 +01:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
2021-02-02 11:19:24 +01:00
|
|
|
# The Web UI (enabled by --api.insecure=true)
|
|
|
|
#- "8080:8080"
|
2021-01-08 00:20:27 +01:00
|
|
|
depends_on:
|
2021-02-02 11:19:24 +01:00
|
|
|
- pusher
|
2021-01-08 00:20:27 +01:00
|
|
|
- front
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2021-02-02 11:19:24 +01:00
|
|
|
- ./acme.json:/acme.json
|
|
|
|
restart: unless-stopped
|
|
|
|
|
2021-01-08 00:20:27 +01:00
|
|
|
|
|
|
|
front:
|
2021-02-02 11:34:29 +01:00
|
|
|
build:
|
2021-02-03 12:29:41 +01:00
|
|
|
context: ../..
|
2021-02-02 11:34:29 +01:00
|
|
|
dockerfile: front/Dockerfile
|
|
|
|
#image: thecodingmachine/workadventure-front:master
|
2021-02-02 11:19:24 +01: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-01-08 00:20:27 +01:00
|
|
|
labels:
|
2021-02-02 11:19:24 +01:00
|
|
|
- "traefik.http.routers.front.rule=Host(`play.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.front.entryPoints=web,traefik"
|
|
|
|
- "traefik.http.services.front.loadbalancer.server.port=80"
|
|
|
|
- "traefik.http.routers.front-ssl.rule=Host(`play.${DOMAIN}`)"
|
2021-01-08 00:20:27 +01:00
|
|
|
- "traefik.http.routers.front-ssl.entryPoints=websecure"
|
|
|
|
- "traefik.http.routers.front-ssl.tls=true"
|
|
|
|
- "traefik.http.routers.front-ssl.service=front"
|
2021-02-02 11:19:24 +01:00
|
|
|
- "traefik.http.routers.front-ssl.tls.certresolver=myresolver"
|
|
|
|
restart: unless-stopped
|
2021-01-08 00:20:27 +01:00
|
|
|
|
|
|
|
pusher:
|
2021-02-02 11:34:29 +01:00
|
|
|
build:
|
2021-02-03 12:29:41 +01:00
|
|
|
context: ../..
|
2021-02-02 11:34:29 +01:00
|
|
|
dockerfile: pusher/Dockerfile
|
|
|
|
#image: thecodingmachine/workadventure-pusher:master
|
2021-02-02 11:19:24 +01:00
|
|
|
command: yarn run runprod
|
2021-01-08 00:20:27 +01:00
|
|
|
environment:
|
|
|
|
SECRET_JITSI_KEY: "$SECRET_JITSI_KEY"
|
2021-02-02 11:19:24 +01:00
|
|
|
SECRET_KEY: yourSecretKey
|
2021-01-08 00:20:27 +01:00
|
|
|
API_URL: back:50051
|
|
|
|
JITSI_URL: $JITSI_URL
|
|
|
|
JITSI_ISS: $JITSI_ISS
|
|
|
|
labels:
|
2021-02-02 11:19:24 +01:00
|
|
|
- "traefik.http.routers.pusher.rule=Host(`pusher.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.pusher.entryPoints=web,traefik"
|
2021-01-08 00:20:27 +01:00
|
|
|
- "traefik.http.services.pusher.loadbalancer.server.port=8080"
|
2021-02-02 11:19:24 +01:00
|
|
|
- "traefik.http.routers.pusher-ssl.rule=Host(`pusher.${DOMAIN}`)"
|
2021-01-08 00:20:27 +01:00
|
|
|
- "traefik.http.routers.pusher-ssl.entryPoints=websecure"
|
|
|
|
- "traefik.http.routers.pusher-ssl.tls=true"
|
|
|
|
- "traefik.http.routers.pusher-ssl.service=pusher"
|
2021-02-02 11:19:24 +01:00
|
|
|
- "traefik.http.routers.pusher-ssl.tls.certresolver=myresolver"
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
back:
|
2021-02-02 11:34:29 +01:00
|
|
|
build:
|
2021-02-03 12:29:41 +01:00
|
|
|
context: ../..
|
2021-02-02 11:34:29 +01:00
|
|
|
dockerfile: back/Dockerfile
|
|
|
|
#image: thecodingmachine/workadventure-back:master
|
2021-02-02 11:19:24 +01:00
|
|
|
command: yarn run runprod
|
|
|
|
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
|
|
|
|
labels:
|
|
|
|
- "traefik.http.routers.back.rule=Host(`api.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.back.entryPoints=web"
|
|
|
|
- "traefik.http.services.back.loadbalancer.server.port=8080"
|
|
|
|
- "traefik.http.routers.back-ssl.rule=Host(`api.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.back-ssl.entryPoints=websecure"
|
|
|
|
- "traefik.http.routers.back-ssl.tls=true"
|
|
|
|
- "traefik.http.routers.back-ssl.service=back"
|
|
|
|
- "traefik.http.routers.back-ssl.tls.certresolver=myresolver"
|
|
|
|
restart: unless-stopped
|