Making LIVE_RELOAD configurable
This commit is contained in:
parent
bf830a67cb
commit
9bba6069b4
@ -1,20 +1,21 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
reverse-proxy:
|
reverse-proxy:
|
||||||
image: traefik:v2.0
|
image: traefik:v2.5
|
||||||
command:
|
command:
|
||||||
- --api.insecure=true
|
- --api.insecure=true
|
||||||
- --providers.docker
|
- --providers.docker
|
||||||
- --entryPoints.web.address=:80
|
- --entryPoints.web.address=:80
|
||||||
- --entryPoints.websecure.address=:443
|
- --entryPoints.websecure.address=:443
|
||||||
|
- "--providers.docker.exposedbydefault=false"
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
# The Web UI (enabled by --api.insecure=true)
|
# The Web UI (enabled by --api.insecure=true)
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
depends_on:
|
#depends_on:
|
||||||
- back
|
# - back
|
||||||
- front
|
# - front
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
networks:
|
networks:
|
||||||
@ -51,10 +52,12 @@ services:
|
|||||||
MAX_USERNAME_LENGTH: "$MAX_USERNAME_LENGTH"
|
MAX_USERNAME_LENGTH: "$MAX_USERNAME_LENGTH"
|
||||||
DISABLE_ANONYMOUS: "$DISABLE_ANONYMOUS"
|
DISABLE_ANONYMOUS: "$DISABLE_ANONYMOUS"
|
||||||
OPID_LOGIN_SCREEN_PROVIDER: "$OPID_LOGIN_SCREEN_PROVIDER"
|
OPID_LOGIN_SCREEN_PROVIDER: "$OPID_LOGIN_SCREEN_PROVIDER"
|
||||||
|
LIVE_RELOAD: "$LIVE_RELOAD:-true"
|
||||||
command: yarn run start
|
command: yarn run start
|
||||||
volumes:
|
volumes:
|
||||||
- ./front:/usr/src/app
|
- ./front:/usr/src/app
|
||||||
labels:
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.front.rule=Host(`play.workadventure.localhost`)"
|
- "traefik.http.routers.front.rule=Host(`play.workadventure.localhost`)"
|
||||||
- "traefik.http.routers.front.entryPoints=web"
|
- "traefik.http.routers.front.entryPoints=web"
|
||||||
- "traefik.http.services.front.loadbalancer.server.port=8080"
|
- "traefik.http.services.front.loadbalancer.server.port=8080"
|
||||||
@ -87,6 +90,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./pusher:/usr/src/app
|
- ./pusher:/usr/src/app
|
||||||
labels:
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.pusher.rule=Host(`pusher.workadventure.localhost`)"
|
- "traefik.http.routers.pusher.rule=Host(`pusher.workadventure.localhost`)"
|
||||||
- "traefik.http.routers.pusher.entryPoints=web"
|
- "traefik.http.routers.pusher.entryPoints=web"
|
||||||
- "traefik.http.services.pusher.loadbalancer.server.port=8080"
|
- "traefik.http.services.pusher.loadbalancer.server.port=8080"
|
||||||
@ -111,6 +115,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./maps:/var/www/html
|
- ./maps:/var/www/html
|
||||||
labels:
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.maps.rule=Host(`maps.workadventure.localhost`)"
|
- "traefik.http.routers.maps.rule=Host(`maps.workadventure.localhost`)"
|
||||||
- "traefik.http.routers.maps.entryPoints=web,traefik"
|
- "traefik.http.routers.maps.entryPoints=web,traefik"
|
||||||
- "traefik.http.services.maps.loadbalancer.server.port=80"
|
- "traefik.http.services.maps.loadbalancer.server.port=80"
|
||||||
@ -142,6 +147,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./back:/usr/src/app
|
- ./back:/usr/src/app
|
||||||
labels:
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.back.rule=Host(`api.workadventure.localhost`)"
|
- "traefik.http.routers.back.rule=Host(`api.workadventure.localhost`)"
|
||||||
- "traefik.http.routers.back.entryPoints=web"
|
- "traefik.http.routers.back.entryPoints=web"
|
||||||
- "traefik.http.services.back.loadbalancer.server.port=8080"
|
- "traefik.http.services.back.loadbalancer.server.port=8080"
|
||||||
@ -160,6 +166,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./uploader:/usr/src/app
|
- ./uploader:/usr/src/app
|
||||||
labels:
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.uploader.rule=Host(`uploader.workadventure.localhost`)"
|
- "traefik.http.routers.uploader.rule=Host(`uploader.workadventure.localhost`)"
|
||||||
- "traefik.http.routers.uploader.entryPoints=web"
|
- "traefik.http.routers.uploader.entryPoints=web"
|
||||||
- "traefik.http.services.uploader.loadbalancer.server.port=8080"
|
- "traefik.http.services.uploader.loadbalancer.server.port=8080"
|
||||||
@ -187,6 +194,7 @@ services:
|
|||||||
redisinsight:
|
redisinsight:
|
||||||
image: redislabs/redisinsight:latest
|
image: redislabs/redisinsight:latest
|
||||||
labels:
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.redisinsight.rule=Host(`redis.workadventure.localhost`)"
|
- "traefik.http.routers.redisinsight.rule=Host(`redis.workadventure.localhost`)"
|
||||||
- "traefik.http.routers.redisinsight.entryPoints=web"
|
- "traefik.http.routers.redisinsight.entryPoints=web"
|
||||||
- "traefik.http.services.redisinsight.loadbalancer.server.port=8001"
|
- "traefik.http.services.redisinsight.loadbalancer.server.port=8001"
|
||||||
@ -198,6 +206,7 @@ services:
|
|||||||
icon:
|
icon:
|
||||||
image: matthiasluedtke/iconserver:v3.13.0
|
image: matthiasluedtke/iconserver:v3.13.0
|
||||||
labels:
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.icon.rule=Host(`icon.workadventure.localhost`)"
|
- "traefik.http.routers.icon.rule=Host(`icon.workadventure.localhost`)"
|
||||||
- "traefik.http.routers.icon.entryPoints=web"
|
- "traefik.http.routers.icon.entryPoints=web"
|
||||||
- "traefik.http.services.icon.loadbalancer.server.port=8080"
|
- "traefik.http.services.icon.loadbalancer.server.port=8080"
|
||||||
|
@ -32,6 +32,7 @@ module.exports = {
|
|||||||
rewrites: [{ from: /^_\/.*$/, to: "/index.html" }],
|
rewrites: [{ from: /^_\/.*$/, to: "/index.html" }],
|
||||||
disableDotRule: true,
|
disableDotRule: true,
|
||||||
},
|
},
|
||||||
|
liveReload: process.env.LIVE_RELOAD != "0" && process.env.LIVE_RELOAD != "false",
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
Loading…
Reference in New Issue
Block a user