-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (67 loc) · 1.52 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
services:
gateway:
image: gateway
ports:
- 8765:8765
environment:
- "SPRING_PROFILES_ACTIVE=zone1"
eurekaserver1:
image: eurekaserver1
ports:
- 8761
environment:
- "SPRING_PROFILES_ACTIVE=peer1"
eurekaserver2:
image: eurekaserver1
ports:
- 8762
environment:
- "SPRING_PROFILES_ACTIVE=peer2"
rate1:
image: rate
ports:
- 9000
environment:
- "SPRING_PROFILES_ACTIVE=zone1"
rate2:
image: rate
ports:
- 9001
environment:
- "SPRING_PROFILES_ACTIVE=zone2"
calculator:
image: caloriecalcolator
ports:
- 8083
environment:
- "SPRING_PROFILES_ACTIVE=zone1"
bodyshape:
image: bodyshape
ports:
- 8084
photoprocessing:
image: photoprocessing
ports:
- 8086
photodb:
image: mysql
command: --default-authentication-plugin=mysql_native_password
ports:
- 3333
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: 'rabbitmq'
ports:
- 5672:5672
- 15672:15672
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
- ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
networks:
- rabbitmq_go_net
networks:
rabbitmq_go_net:
driver: bridge