-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
77 lines (70 loc) · 1.46 KB
/
docker-compose.yaml
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
69
70
71
72
73
74
75
76
77
version: "3.7"
services:
front-envoy:
build:
context: .
dockerfile: Dockerfile-frontenvoy
networks:
- envoymesh
ports:
- "8080:8080"
- "8443:8443"
- "8001:8001"
service1:
build:
context: .
dockerfile: Dockerfile-service1
volumes:
- ./service-envoy.yaml:/etc/service-envoy.yaml
networks:
- envoymesh
environment:
- SERVICE_NAME=1
service2:
build:
context: .
dockerfile: Dockerfile-service2
volumes:
- ./service-envoy.yaml:/etc/service-envoy.yaml
networks:
- envoymesh
environment:
- SERVICE_NAME=2
service3:
build:
context: .
dockerfile: Dockerfile-service3
volumes:
- ./service-envoy.yaml:/etc/service-envoy.yaml
networks:
- envoymesh
environment:
- SERVICE_NAME=3
service4:
build:
context: .
dockerfile: Dockerfile-service4
volumes:
- ./service-envoy.yaml:/etc/service-envoy.yaml
networks:
- envoymesh
environment:
- SERVICE_NAME=4
################add################
mysql-server:
build:
context: .
dockerfile: Dockerfile-mysqlServer
image: mysql-database
container_name: mysql-server
networks:
- envoymesh
ports:
- "3307:3307"
environment:
- MYSQL_ROOT_PASSWORD=secret
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
restart: always
networks:
envoymesh: {}