diff --git a/docker-compose.yaml b/docker-compose.yaml index fc426e980..239f7973c 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,17 +1,40 @@ version: '2.4' services: + proxy: + image: traefik:v2.0-alpine + command: + - --api.insecure=true + - --providers.docker + volumes: + - /var/run/docker.sock:/var/run/docker.sock + ports: + - 80:80 + - 8080:8080 + labels: + - "traefik.enable=false" + app: build: context: . dockerfile: tools/docker/images/Dockerfile target: app + expose: + - 80 + command: + - generate + - --server + - --watch + - --port + - '80' + - --url + - oliverdavies.localhost volumes: - assets:/app/source/build - /app/output_dev - .:/app - ports: - - 8000:8000 + labels: + - "traefik.http.routers.oliverdavies.rule=Host(`oliverdavies.localhost`)" assets: image: node:14 @@ -28,6 +51,8 @@ services: - ./webpack.config.js:/node/webpack.config.js entrypoint: npm command: run watch + labels: + - "traefik.enable=false" volumes: assets: