docker-volume-borg-backup/traefik/traefik-v2.1-nginx-backend.yml

23 wiersze
565 B
YAML
Czysty Zwykły widok Historia

2020-02-02 14:38:20 +00:00
version: '3.7'
services:
traefik:
image: traefik:v2.1
ports:
- 80:80
command:
- --entrypoints.http.address=:80
- --providers.docker.exposedByDefault=false
- --log.level=DEBUG
volumes:
- /var/run/docker.sock:/var/run/docker.sock
nginx:
image: nginx:1.17.8-alpine
labels:
traefik.enable: 'true'
traefik.http.routers.nginx-http-router.entrypoints: http
traefik.http.routers.nginx-http-router.rule: Host(`nginx.local`)
traefik.http.services.nginx-service.loadbalancer.server.port: 80