ansible-role-docker_element/templates/docker-compose.yml

21 lines
612 B
YAML
Raw Normal View History

2022-08-15 20:00:53 +02:00
# {{ ansible_managed }}
services:
element:
image: vectorim/element-web:{{ docker_element_image_version }}
volumes:
- ./config.json:/app/config.json
restart: always
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.{{ docker_element_service_id }}.entrypoints=web"
- "traefik.http.routers.{{ docker_element_service_id }}.rule=Host(`{{ docker_element_fqdn }}`)"
- "traefik.http.services.{{ docker_element_service_id }}.loadbalancer.server.port=80"
networks:
- traefik
networks:
traefik:
external: true