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/templates/docker-compose.yml.j2

36 lines
1 KiB
Text
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
container_name: traefik
2023-01-02 16:39:17 +00:00
ports:
- "443:443"
- "80:80"
2023-01-14 17:00:01 +00:00
- "{{ git_ssh_port }}:{{ git_ssh_port }}"
- "{{ traefik_api_port }}:{{ traefik_api_port }}"
2023-01-02 16:39:17 +00:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2023-01-07 19:32:42 +00:00
- {{ service_dir }}/traefik.toml:/etc/traefik/traefik.toml
- {{ service_dir }}/services.toml:/etc/traefik/services.toml
- {{ service_dir }}/acme.json:/acme.json
2023-01-02 16:39:17 +00:00
networks:
- traefik
labels:
- traefik.enable=true
2023-01-22 22:34:37 +00:00
2023-01-02 16:39:17 +00:00
- 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
2023-02-08 07:27:30 +00:00
- traefik.http.routers.esrom.tls.certresolver=letsencrypt
2023-01-22 22:34:37 +00:00
- traefik.http.routers.traefik.rule=Host(`max.lan`)
- traefik.http.routers.traefik.entrypoints=internal
2023-01-22 22:34:37 +00:00
- traefik.http.routers.traefik.service=api@internal