-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (92 loc) · 2.31 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3.4'
services:
rabbitmq:
image: rabbitmq:3-management
networks:
- my-network
ports:
- '5672:5672'
- '15672:15672'
consulservice:
image: consul:latest
command: consul agent -dev -log-level=warn -ui -client=0.0.0.0
hostname: consulservice
container_name: consulservice
networks:
- my-network
ports:
- "8500:8500"
apigateway:
image: apigateway:latest
build:
context: .
dockerfile: ApiGateway/Dockerfile
networks:
- my-network
environment:
- ASPNETCORE_ENVIRONMENT=Containers
- ASPNETCORE_URLS=http://*:8000
ports:
- "8000:80"
depends_on:
- consulservice
moviesapi:
image: moviesapi:latest
build:
context: .
dockerfile: MoviesApi/Dockerfile
depends_on:
- rabbitmq
networks:
- my-network
environment:
- ASPNETCORE_ENVIRONMENT=Containers
- ASPNETCORE_URLS=http://*:8001
- ServiceConfig__ServiceDiscoveryAddress=http://consulservice:8500
- ServiceConfig__ServiceAddress=http://moviesapi:80
- ServiceConfig__ServiceName=movies
- ServiceConfig__ServiceId=v1
ports:
- "8001:80"
depends_on:
- consulservice
authapi:
image: authapi:latest
build:
context: .
dockerfile: AuthApi/Dockerfile
networks:
- my-network
environment:
- ASPNETCORE_ENVIRONMENT=Containers
- ASPNETCORE_URLS=http://*:8003
- ServiceConfig__ServiceDiscoveryAddress=http://consulservice:8500
- ServiceConfig__ServiceAddress=http://authapi:80
- ServiceConfig__ServiceName=auth
- ServiceConfig__ServiceId=v1
ports:
- "8003:80"
depends_on:
- consulservice
actorsapi:
image: actorsapi:latest
build:
context: .
dockerfile: ActorsApi/Dockerfile
depends_on:
- rabbitmq
- consulservice
networks:
- my-network
environment:
- ASPNETCORE_ENVIRONMENT=Containers
- ASPNETCORE_URLS=http://*:8002
- ServiceConfig__ServiceDiscoveryAddress=http://consulservice:8500
- ServiceConfig__ServiceAddress=http://actorsapi:80
- ServiceConfig__ServiceName=actors
- ServiceConfig__ServiceId=v1
ports:
- "8002:80"
networks:
my-network:
driver: bridge