diff --git a/docker-compose.yaml b/docker-compose.yaml index ca2197a8..fb953bb9 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -25,7 +25,7 @@ services: volumes: - ./front:/usr/src/app labels: - - "traefik.http.routers.front.rule=Host(`workadventure.localhost`)" + - "traefik.http.routers.front.rule=Host(`play.workadventure.localhost`)" - "traefik.http.services.front.loadbalancer.server.port=8080" back: @@ -39,3 +39,15 @@ services: labels: - "traefik.http.routers.back.rule=Host(`api.workadventure.localhost`)" - "traefik.http.services.back.loadbalancer.server.port=8080" + + website: + image: thecodingmachine/nodejs:12-apache + environment: + STARTUP_COMMAND_1: npm install + STARTUP_COMMAND_2: npm run watch & + APACHE_DOCUMENT_ROOT: dist/ + volumes: + - ./landing_page:/var/www/html + labels: + - "traefik.http.routers.website.rule=Host(`workadventure.localhost`)" + - "traefik.http.services.website.loadbalancer.server.port=80" diff --git a/landing_page/.gitignore b/landing_page/.gitignore index c85804c9..cfc08c0e 100644 --- a/landing_page/.gitignore +++ b/landing_page/.gitignore @@ -1,2 +1,5 @@ /node_modules/ -/dist/ \ No newline at end of file +/dist/bundle.js +/dist/main.css +/dist/fonts +/dist/images diff --git a/landing_page/index.html b/landing_page/dist/index.html similarity index 86% rename from landing_page/index.html rename to landing_page/dist/index.html index 4e9cad93..3e361bee 100644 --- a/landing_page/index.html +++ b/landing_page/dist/index.html @@ -4,9 +4,9 @@