diff --git a/compose.yml b/compose.yml index ecd70d4..5e77608 100644 --- a/compose.yml +++ b/compose.yml @@ -17,9 +17,10 @@ services: command: - "run" - "--storage.path=/var/lib/alloy/data" - - "--server.http.listen-addr=127.0.0.1:12345" + - "--server.http.listen-addr=0.0.0.0:12345" - "/etc/alloy/config.alloy" networks: + - proxy - internal secrets: - basic_auth @@ -28,8 +29,15 @@ services: condition: on-failure labels: - "backupbot.backup=${ENABLE_BACKUPS:-true}" - - "traefik.enable=false" - "coop-cloud.${STACK_NAME}.version=1.6.0+v1.8.1" + - "traefik.enable=true" + - "traefik.swarm.network=proxy" + - "traefik.http.services.${STACK_NAME}-alloy.loadbalancer.server.port=12345" + - "traefik.http.routers.${STACK_NAME}-alloy.rule=Host(`alloy.${DOMAIN}`)" + - "traefik.http.routers.${STACK_NAME}-alloy.entrypoints=web-secure" + - "traefik.http.routers.${STACK_NAME}-alloy.tls=true" + - "traefik.http.routers.${STACK_NAME}-alloy.tls.certresolver=${LETS_ENCRYPT_ENV}" + - "traefik.http.routers.${STACK_NAME}-alloy.middlewares=basicauth@file" configs: config_alloy: template_driver: golang