traefik-container/container-compose.yml

27 lines
488 B
YAML
Raw Normal View History

2022-09-10 20:23:15 +00:00
---
version: '3'
networks:
web:
external: true
services:
reverse-proxy:
image: docker.io/traefik:latest
command:
- "--configFile=/traefik.toml"
environment:
- TRAEFIK_API_INSECURE=true
ports:
# The HTTP port
- "8080:80"
# The Web UI (enabled by --api.insecure=true)
- "8081:8080"
# TLS
- "8443:443"
networks:
- web
volumes:
- ./traefik.toml:/traefik.toml:ro
- ./conf.d:/traefik.conf.d:ro