Docker/docker-compose.yml

34 lines
701 B
YAML

version: '3'
services:
reverse-proxy:
# The official v2.0 Traefik docker image
image: traefik:v2.4
container_name: "traefik"
networks:
- backend
- frontend
ports:
# The HTTP port
- "80:80"
- "443:443"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.yml:/etc/traefik/traefik.yml
- ./static_config.yml:/etc/traefik/static_config.yml
# - "./log.json:/etc/traefik/log.json"
#- ./acme.json:/acme.json
- ./letsencrypt:/letsencrypt
dns:
- 8.8.8.8
networks:
frontend:
external: true
backend:
external: false