@@ -24,8 +24,6 @@ services:
2424 - " com.mariadb.host=webserver"
2525 authentication :
2626 image : bstaijen/mariadb-microservice-authenticationsvc:demo
27- depends_on :
28- - registrator
2927 ports :
3028 - " 5001:5001"
3129 restart : always
@@ -42,8 +40,6 @@ services:
4240 - " com.mariadb.host=authenticationsvc"
4341 photo :
4442 image : bstaijen/mariadb-microservice-photosvc:demo
45- depends_on :
46- - registrator
4743 ports :
4844 - " 5002:5002"
4945 restart : always
@@ -62,9 +58,7 @@ services:
6258 labels :
6359 - " com.mariadb.host=photosvc"
6460 vote :
65- image : bstaijen/mariadb-microservice-votesvc:demo
66- depends_on :
67- - registrator
61+ image : bstaijen/mariadb-microservice-voteservice:demo
6862 ports :
6963 - " 5003:5003"
7064 restart : always
@@ -81,9 +75,7 @@ services:
8175 labels :
8276 - " com.mariadb.host=votesvc"
8377 comment :
84- image : bstaijen/mariadb-microservice-commentsvc:demo3
85- depends_on :
86- - registrator
78+ image : bstaijen/mariadb-microservice-commentsvc:demo
8779 ports :
8880 - " 5004:5004"
8981 restart : always
@@ -103,8 +95,6 @@ services:
10395 - " com.mariadb.host=commentsvc"
10496 profile :
10597 image : bstaijen/mariadb-microservice-profilesvc:demo
106- depends_on :
107- - registrator
10898 ports :
10999 - " 5000:5000"
110100 restart : always
@@ -121,8 +111,6 @@ services:
121111 - " com.mariadb.host=profilesvc"
122112 db :
123113 image : bstaijen/mariadb-microservice-database:demo
124- depends_on :
125- - registrator
126114 restart : always
127115 environment :
128116 - " MYSQL_ROOT_PASSWORD=password"
@@ -137,36 +125,4 @@ services:
137125 - 3306:3306
138126 - 4567-4568:4567-4568
139127 - 4444:4444
140- registrator :
141- image : gliderlabs/registrator:v7
142- depends_on :
143- - consul
144- hostname : registrator
145- volumes :
146- - " /var/run/docker.sock:/tmp/docker.sock"
147- command : -internal consul://consul:8500
148- restart : always
149- environment :
150- - " affinity:com.mariadb.host!=registrator"
151- labels :
152- - " com.mariadb.host=registrator"
153- consul :
154- image : " progrium/consul:latest"
155- hostname : " consul"
156- ports :
157- - " 8400:8400"
158- - " 8500:8500"
159- - " 8600:53/udp"
160- command : " -server -bootstrap -ui-dir /ui"
161- restart : always
162- vizualizer :
163- image : bstaijen/mariadb-microservice-vizualizersvc:demo
164- ports :
165- - 3000:3000
166- environment :
167- - SWARM_HOST
168- - SWARM_CA
169- - SWARM_KEY
170- - SWARM_CERT
171- - " constraint:node==master"
172- restart : always
128+
0 commit comments