28 lines
574 B
Django/Jinja
28 lines
574 B
Django/Jinja
version: '3'
|
|
|
|
networks:
|
|
web:
|
|
external: true
|
|
|
|
services:
|
|
traefik:
|
|
image: "traefik:v2.7"
|
|
container_name: "traefik"
|
|
restart: unless-stopped
|
|
networks:
|
|
- "web"
|
|
ports:
|
|
- "80:80"
|
|
{% if with_https == 'yes' %}
|
|
- "443:443"
|
|
{% endif %}
|
|
{% if with_dashboard == 'yes' %}
|
|
- "8080:8080"
|
|
{% endif %}
|
|
volumes:
|
|
- "{{ working_dir }}/traefik/traefik.yml:/etc/traefik/traefik.yml"
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
{% if with_https == 'yes' %}
|
|
- "{{ working_dir }}/traefik/acme.json:/acme.json"
|
|
{% endif %}
|