# {{ 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