partey_workadventure/docker-compose.yaml

82 lines
2.7 KiB
YAML
Raw Normal View History

version: "3"
services:
reverse-proxy:
image: traefik:v2.0
2020-06-25 10:32:47 +02:00
command:
- --api.insecure=true
- --providers.docker
- --entryPoints.web.address=:80
- --entryPoints.websecure.address=:443
ports:
- "80:80"
2020-06-25 10:32:47 +02:00
- "443:443"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
2020-04-14 20:04:55 +02:00
depends_on:
- back
- front
volumes:
- /var/run/docker.sock:/var/run/docker.sock
front:
image: thecodingmachine/nodejs:12
environment:
2020-04-13 19:40:10 +02:00
DEBUG_MODE: "$DEBUG_MODE"
2020-08-31 12:18:00 +02:00
JITSI_URL: $JITSI_URL
HOST: "0.0.0.0"
NODE_ENV: development
2020-06-25 10:32:47 +02:00
API_URL: api.workadventure.localhost
STARTUP_COMMAND_1: yarn install
2020-08-28 13:52:25 +02:00
TURN_SERVER: "turn:coturn.workadventu.re:443,turns:coturn.workadventu.re:443"
TURN_USER: workadventure
TURN_PASSWORD: WorkAdventure123
command: yarn run start
volumes:
- ./front:/usr/src/app
labels:
2020-06-01 16:05:01 +02:00
- "traefik.http.routers.front.rule=Host(`play.workadventure.localhost`)"
2020-06-25 10:43:10 +02:00
- "traefik.http.routers.front.entryPoints=web,traefik"
- "traefik.http.services.front.loadbalancer.server.port=8080"
2020-06-25 10:32:47 +02:00
- "traefik.http.routers.front-ssl.rule=Host(`play.workadventure.localhost`)"
- "traefik.http.routers.front-ssl.entryPoints=websecure"
- "traefik.http.routers.front-ssl.tls=true"
- "traefik.http.routers.front-ssl.service=front"
back:
image: thecodingmachine/nodejs:12
2020-09-11 10:01:45 +02:00
command: yarn dev
#command: yarn run profile
environment:
STARTUP_COMMAND_1: yarn install
SECRET_KEY: yourSecretKey
ALLOW_ARTILLERY: "true"
volumes:
- ./back:/usr/src/app
labels:
- "traefik.http.routers.back.rule=Host(`api.workadventure.localhost`)"
2020-06-25 10:32:47 +02:00
- "traefik.http.routers.back.entryPoints=web"
- "traefik.http.services.back.loadbalancer.server.port=8080"
2020-06-25 10:32:47 +02:00
- "traefik.http.routers.back-ssl.rule=Host(`api.workadventure.localhost`)"
- "traefik.http.routers.back-ssl.entryPoints=websecure"
- "traefik.http.routers.back-ssl.tls=true"
- "traefik.http.routers.back-ssl.service=back"
2020-06-01 16:05:01 +02:00
website:
image: thecodingmachine/nodejs:12-apache
environment:
STARTUP_COMMAND_1: npm install
STARTUP_COMMAND_2: npm run watch &
APACHE_DOCUMENT_ROOT: dist/
volumes:
- ./website:/var/www/html
2020-06-01 16:05:01 +02:00
labels:
- "traefik.http.routers.website.rule=Host(`workadventure.localhost`)"
2020-06-25 10:32:47 +02:00
- "traefik.http.routers.website.entryPoints=web"
2020-06-01 16:05:01 +02:00
- "traefik.http.services.website.loadbalancer.server.port=80"
2020-06-25 10:32:47 +02:00
- "traefik.http.routers.website-ssl.rule=Host(`workadventure.localhost`)"
- "traefik.http.routers.website-ssl.entryPoints=websecure"
- "traefik.http.routers.website-ssl.tls=true"
- "traefik.http.routers.website-ssl.service=website"