This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
max/roles/traefik/files/docker-compose.yml

35 lines
1 KiB
YAML
Raw Normal View History

2023-01-02 16:39:17 +00:00
version: '3'
networks:
traefik:
external: true
services:
reverse-proxy:
restart: always
image: traefik:v2.9
command:
- "--providers.docker"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
- "--entrypoints.websecure.address=:443"
ports:
- "443:443"
- "80:80"
2023-01-06 16:35:36 +00:00
- "56287:56287"
2023-01-02 16:39:17 +00:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /apps/traefik/traefik.toml:/etc/traefik/traefik.toml
- /apps/traefik/services.toml:/etc/traefik/services.toml
- /apps/traefik/acme.json:/acme.json
networks:
- traefik
labels:
- traefik.enable=true
- traefik.http.routers.esrom.entrypoints=websecure
- traefik.http.routers.esrom.service=esrom@file
- traefik.http.routers.esrom.rule=Host(`geokunis2.nl`)
- traefik.http.routers.esrom.tls=true
- traefik.http.routers.esrom.tls.certresolver=geokunis