You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

version: "3"
services:
reverse-proxy:
# The official v2 Traefik docker image
image: traefik:v2.5
container_name: traefik
# Enables the web UI and tells Traefik to listen to docker
# command: --api.insecure=true --providers.docker
command:
- --configFile=/etc/traefik.yml
- --entrypoints.ssh.address=:22
restart: always
ports:
# The HTTP port
- "80:80"
# The TSL port
- "443:443"
# The Web UI (enabled by --api.insecure=true)
- "8080:8080"
# - "22:22"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
# Access to docker is disabled, we use file provider, no docker provider
# - ./config/:/config/:ro
# - ./traefik.yml:/etc/traefik.yml:ro
# - ./traefik_letsencrypt/:/etc/traefik_letsencrypt/
- $PWD/traefik.toml:/traefik.toml
- $PWD/traefik_dynamic.toml:/traefik_dynamic.toml
- $PWD/acme.json:/acme.json
networks:
- web
networks:
web:
external: true