-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (88 loc) · 2.49 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
version: '3.0'
volumes:
sqlvolume:
driver: local
networks:
ocelot-network:
driver: bridge
services:
ocelot-gateway:
environment:
- "ASPNETCORE_ENVIRONMENT=Development"
- "ASPNETCORE_URLS=http://+:80"
ports:
- "5000:80"
container_name: ocelot-gateway
image: ocelot-gateway
build:
context: .
dockerfile: src/Poc.Ocelot.Gateway/Dockerfile
networks:
- ocelot-network
depends_on:
- sql-database
accounts-service:
environment:
- "ASPNETCORE_ENVIRONMENT=Development"
- "ASPNETCORE_URLS=http://+:80"
container_name: accounts-service
image: accounts-service
build:
context: .
dockerfile: src/Poc.Ocelot.Accounts/Dockerfile
networks:
- ocelot-network
depends_on:
- ocelot-gateway
payment-service:
environment:
- "ASPNETCORE_ENVIRONMENT=Development"
- "ASPNETCORE_URLS=http://+:80"
container_name: payment-service
image: payment-service
build:
context: .
dockerfile: src/Poc.Ocelot.Payments/Dockerfile
networks:
- ocelot-network
depends_on:
- ocelot-gateway
product-service:
environment:
- "ASPNETCORE_ENVIRONMENT=Development"
- "ASPNETCORE_URLS=http://+:80"
container_name: product-service
image: product-service
build:
context: .
dockerfile: src/Poc.Ocelot.Products/Dockerfile
networks:
- ocelot-network
depends_on:
- ocelot-gateway
backoffice-service:
environment:
- "ASPNETCORE_ENVIRONMENT=Development"
- "ASPNETCORE_URLS=http://+:80"
container_name: backoffice-service
image: backoffice-service
build:
context: .
dockerfile: src/Poc.Ocelot.Backoffice/Dockerfile
networks:
- ocelot-network
depends_on:
- ocelot-gateway
sql-database:
environment:
- SA_PASSWORD=@Abcd1234
- ACCEPT_EULA=Y
ports:
- "1433:1433"
- "1434:1434"
container_name: sql-database
image: mcr.microsoft.com/mssql/server:2019-CU13-ubuntu-20.04
networks:
- ocelot-network
volumes:
- sqlvolume