-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
84 lines (84 loc) · 1.59 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: "3.7"
services:
dbservice:
container_name: dbservice
image: postgres:12
ports:
- 5433:5432
env_file:
- ./db.env
# restart:
# on-failure
volumes:
- ./postgresql/data/:/var/lib/postgresql/data
networks:
- microservices
discoveryservice:
container_name: discoveryservice
build: ./discoveryservice
ports:
- 8091:8091
env_file:
- ./microservice.env
- ./db.env
# restart:
# on-failure
networks:
- microservices
authservice:
container_name: authservice
build: ./authservice
ports:
- 8092:8092
env_file:
- ./microservice.env
- ./db.env
# restart:
# on-failure
depends_on:
- dbservice
- discoveryservice
networks:
- microservices
apiservice:
container_name: apiservice
build: ./apiservice
ports:
- 8093:8093
env_file:
- ./microservice.env
- ./db.env
# restart:
# on-failure
depends_on:
- dbservice
- discoveryservice
networks:
- microservices
gatewayservice:
container_name: gatewayservice
build: ./gatewayservice
ports:
- 8090:8090
env_file:
- ./microservice.env
# restart:
# on-failure
depends_on:
- discoveryservice
networks:
- microservices
monitoringservice:
container_name: monitoringservice
build: ./monitoringservice
ports:
- 8095:8095
env_file:
- ./microservice.env
# restart:
# on-failure
networks:
- microservices
networks:
microservices:
driver: bridge