chore: add traefik deployment and config generation
This commit is contained in:
parent
aca6e8dac2
commit
5c5a0e9d51
6 changed files with 155 additions and 1 deletions
23
roles/reverseproxy/templates/docker-compose.yml.j2
Normal file
23
roles/reverseproxy/templates/docker-compose.yml.j2
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v3.5
|
||||
container_name: traefik
|
||||
restart: always
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
{% if enable_dashboard %}
|
||||
- "8080:8080" # Dashboard
|
||||
{% endif %}
|
||||
volumes:
|
||||
- {{ docker_volume_dir }}/traefik/etc/traefik:/etc/traefik:ro
|
||||
- {{ docker_volume_dir }}/traefik/letsencrypt:/letsencrypt
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
networks:
|
||||
- traefik
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue