services: {{NAME}}: image: coreapp/{{NAME}}:${IMAGE_VERSION} container_name: {{NAME}} hostname: {{NAME}}.@DOMAIN@ restart: always networks: core: ipv4_address: {{IP}} # Reach Authelia's https address through traefik on the core network # (inside it, authelia.@DOMAIN@ is Authelia's own plain-http container) extra_hosts: - "authelia.@DOMAIN@:@TRAEFIK_IP@" env_file: - ./.env volumes: - ./data:/data labels: - "traefik.enable=true" - "traefik.http.routers.{{NAME}}.rule=Host(`{{NAME}}.@DOMAIN@`)" - "traefik.http.routers.{{NAME}}.entrypoints=websecure" - "traefik.http.routers.{{NAME}}.tls.certresolver=letsencrypt" - "traefik.http.services.{{NAME}}.loadbalancer.server.port=8080" networks: core: external: true