@@ -99,40 +99,38 @@ services:
9999 - " traefik.backend.loadbalancer.swarm=true"
100100 - " traefik.backend.loadbalancer.method=drr"
101101
102- # https://github.com/bitnami/bitnami-docker-nginx/issues/100
103-
104- # who3:
105- # image: bitnami/nginx:1.14.0
106- # networks:
107- # - ntw_front
108- # volumes:
109- # - ./www/who3/html/:/usr/share/nginx/html/
110- # deploy:
111- # mode: replicated
112- # replicas: 2
113- # #placement:
114- # # constraints: [node.role==manager]
115- # restart_policy:
116- # condition: on-failure
117- # max_attempts: 5
118- # resources:
119- # limits:
120- # cpus: '0.20'
121- # memory: 9M
122- # reservations:
123- # cpus: '0.05'
124- # memory: 9M
125- # labels:
126- # - "traefik.frontend.rule=PathPrefixStrip:/who3"
127- # - "traefik.backend=who3"
128- # - "traefik.port=80"
129- # - "traefik.weight=10"
130- # - "traefik.enable=true"
131- # - "traefik.passHostHeader=true"
132- # - "traefik.docker.network=ntw_front"
133- # - "traefik.frontend.entryPoints=http"
134- # - "traefik.backend.loadbalancer.swarm=true"
135- # - "traefik.backend.loadbalancer.method=drr"
102+ who3 :
103+ image : bitnami/nginx:1.14.0
104+ networks :
105+ - ntw_front
106+ volumes :
107+ - ./www/who3/html/:/usr/share/nginx/html/
108+ deploy :
109+ mode : replicated
110+ replicas : 2
111+ # placement:
112+ # constraints: [node.role==manager]
113+ restart_policy :
114+ condition : on-failure
115+ max_attempts : 5
116+ resources :
117+ limits :
118+ cpus : ' 0.20'
119+ memory : 9M
120+ reservations :
121+ cpus : ' 0.05'
122+ memory : 9M
123+ labels :
124+ - " traefik.frontend.rule=PathPrefixStrip:/who3"
125+ - " traefik.backend=who3"
126+ - " traefik.port=8080"
127+ - " traefik.weight=10"
128+ - " traefik.enable=true"
129+ - " traefik.passHostHeader=true"
130+ - " traefik.docker.network=ntw_front"
131+ - " traefik.frontend.entryPoints=http"
132+ - " traefik.backend.loadbalancer.swarm=true"
133+ - " traefik.backend.loadbalancer.method=drr"
136134
137135networks :
138136 ntw_front :
0 commit comments