-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
58 lines (58 loc) · 1.19 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
version: "2"
services:
eureka1:
image: spring-cloud-app/eureka-server:v1
hostname: eureka1
networks:
- eureka-net
ports:
- "8761:8761"
environment:
- spring.profiles.active=peer1
eureka2:
image: spring-cloud-app/eureka-server:v1
hostname: eureka2
networks:
- eureka-net
ports:
- "8762:8762"
environment:
- spring.profiles.active=peer2
config-server:
image: spring-cloud-app/config-server:v1
hostname: config-server
networks:
- eureka-net
ports:
- "8888:8888"
mysql:
image: docker.io/mysql:5.7
hostname: mysql
networks:
- eureka-net
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "123456"
volumes:
- "./mysql/conf:/etc/mysql"
- "./mysql/logs:/var/log/mysql"
- "./mysql/data:/var/lib/mysql"
rabbitmq:
image: docker.io/rabbitmq:3.8.2-management
hostname: rabbitmq
networks:
- eureka-net
ports:
- "5672:5672"
- "15672:15672"
zipkin:
image: docker.io/openzipkin/zipkin:2.19.2
hostname: zipkin
networks:
- eureka-net
ports:
- "9411:9411"
networks:
eureka-net:
driver: bridge