From 3b3b075ad1ae6d7f927cdf8f907784ebb2e818c6 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 26 Jul 2021 23:40:01 +0100 Subject: [PATCH] Replace Traefik with Nginx [skip ci] --- docker-compose.yaml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index c035f26a..e8c7b709 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,17 +2,11 @@ version: '2.4' services: proxy: - image: traefik:v2.0-alpine - command: - - --api.insecure=true - - --providers.docker + image: nginxproxy/nginx-proxy:alpine volumes: - - /var/run/docker.sock:/var/run/docker.sock + - /var/run/docker.sock:/tmp/docker.sock:ro ports: - 80:80 - - 8080:8080 - labels: - - "traefik.enable=false" app: build: @@ -33,8 +27,8 @@ services: - assets:/app/source/build - /app/output_dev - .:/app - labels: - - "traefik.http.routers.oliverdavies.rule=Host(`oliverdavies.localhost`)" + environment: + VIRTUAL_HOST: oliverdavies.localhost assets: image: node:14 @@ -54,8 +48,6 @@ services: entrypoint: make command: - assets-watch - labels: - - "traefik.enable=false" volumes: assets: