I am trying to implement loadbalaner. Your example worked for me.
But I am facing issues after adding my service to the compose file. My application runs on HTTPS and custom port. Could you please guide me in setting up the configurations for allowing traefik to process HTTPS requests.
Thanks,
Shyam
]]>Heres my docker-compose file :
version: ‘3’
services:
test_manager:
image: 10.244.102.10:5000/testmanager
networks:
– net
deploy:
mode: replicated
replicas: 3
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
labels:
– “traefik.docker.network=autoframework_net”
– “traefik.port=80”
– “traefik.frontend.rule=Host:10.244.102.243; PathPrefix:/TestManager”
– “traefik.backend.loadbalancer.sticky=true”
ports:
– “8080”
loadbalancer:
image: traefik
command: –docker \
–docker.swarmmode \
–docker.watch \
–web \
–loglevel=DEBUG
ports:
– 80:80
– 9090:8080
volumes:
– /var/run/docker.sock:/var/run/docker.sock
deploy:
restart_policy:
condition: any
mode: replicated
replicas: 1
update_config:
delay: 2s
placement:
constraints: [node.role == manager]
networks:
– net
networks:
net:
So seems like there is some issue with Traefik and multiple services + priority labels…
]]>But why does GOGS stop working if I remove the whoami service? That doesn’t make any sense for me…
]]>