-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (78 loc) · 2.01 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
version: '3.3'
services:
identity.api:
image: safe_shop/identity.api:${TAG:-latest}
build:
context: .
dockerfile: src/Services/Identity/Identity.Api/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- PATH_BASE=/identity
basket.api:
image: safe_shop/basket.api:${TAG:-latest}
build:
context: .
dockerfile: src/Services/Basket/Basket.Api/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- Service__Database__Connection=basket.data:6379
- PATH_BASE=/basket
depends_on:
- basket.data
catalog.api:
image: safe_shop/catalog.api:${TAG:-latest}
build:
context: .
dockerfile: src/Services/Catalog/Catalog.Api/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://0.0.0.0:80
- Service__Database__Connection=mongodb://catalog.data:27017
- PATH_BASE=/catalog
depends_on:
- catalog.data
catalog.import:
image: safe_shop/catalog.import:${TAG:-latest}
build:
context: .
dockerfile: src/Services/Catalog/Catalog.Import/Dockerfile
environment:
- Service__Quantity=10000
- Service__ConnectionString=mongodb://catalog.data:27017
depends_on:
- catalog.data
shopping.apigw:
image: safe_shop/shopping.apigw:${TAG:-latest}
build:
context: .
dockerfile: src/ApiGateways/Web.Bff.Shopping/apigw/Dockerfile
ports:
- "5000:80"
depends_on:
- identity.api
- catalog.api
- basket.api
catalog.data:
image: mongo
ports:
- "27017:27017"
volumes:
- catalog:/data/db
basket.data:
image: redis
ports:
- "6379:6379"
portainer:
image: portainer/portainer
ports:
- "9000:9000"
volumes:
- "portainer:/data"
- "/var/run/docker.sock:/var/run/docker.sock"
volumes:
catalog:
external: true
portainer:
external: true