Replace Traefik with Nginx [skip ci]

This commit is contained in:
Oliver Davies 2021-07-26 23:40:01 +01:00
parent afbd1e302f
commit 3b3b075ad1

View file

@ -2,17 +2,11 @@ version: '2.4'
services: services:
proxy: proxy:
image: traefik:v2.0-alpine image: nginxproxy/nginx-proxy:alpine
command:
- --api.insecure=true
- --providers.docker
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/tmp/docker.sock:ro
ports: ports:
- 80:80 - 80:80
- 8080:8080
labels:
- "traefik.enable=false"
app: app:
build: build:
@ -33,8 +27,8 @@ services:
- assets:/app/source/build - assets:/app/source/build
- /app/output_dev - /app/output_dev
- .:/app - .:/app
labels: environment:
- "traefik.http.routers.oliverdavies.rule=Host(`oliverdavies.localhost`)" VIRTUAL_HOST: oliverdavies.localhost
assets: assets:
image: node:14 image: node:14
@ -54,8 +48,6 @@ services:
entrypoint: make entrypoint: make
command: command:
- assets-watch - assets-watch
labels:
- "traefik.enable=false"
volumes: volumes:
assets: assets: