-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
114 lines (104 loc) · 2.38 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: '3.1'
services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_DATABASE: Carting
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- 27017:27017
volumes:
- mongo-data:/data/db
- ./CartingService/src/Infrastructure/Data/MongoDb/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
ME_CONFIG_BASICAUTH: false
depends_on:
- mongo
rabbitmq:
image: rabbitmq:3-management
restart: always
environment:
RABBITMQ_ERLANG_COOKIE: 'rabbitmq_secret'
RABBITMQ_DEFAULT_USER: 'guest'
RABBITMQ_DEFAULT_PASS: 'guest'
RABBITMQ_DEFAULT_VHOST: '/'
ports:
- 15672:15672
- 5672:5672
volumes:
- rabbitmq-data:/var/lib/rabbitmq
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 30s
timeout: 10s
retries: 5
carting:
image: carting
build:
context: .
dockerfile: ./CartingService/Dockerfile
env_file:
- ./CartingService/.env
ports:
- 8082:8080
depends_on:
- mongo
- rabbitmq
catalog:
image: catalog
build:
context: .
dockerfile: ./CatalogService/Dockerfile
volumes:
- catalog-data:/app/data
env_file:
- ./CatalogService/.env
ports:
- 8083:8080
depends_on:
- rabbitmq
identity:
image: identity
build:
context: .
dockerfile: ./IdentityService/Dockerfile
ports:
- 5119:8080
env_file:
- ./IdentityService/.env
depends_on:
- postgres
postgres:
image: postgres
env_file:
- ./IdentityService/.env
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data/
pgadmin:
image: dpage/pgadmin4
env_file:
- ./IdentityService/.env
ports:
- 5050:80
volumes:
- pgadmin-data:/root/.pgaadmin
depends_on:
- postgres
volumes:
rabbitmq-data:
mongo-data:
catalog-data:
postgres-data:
pgadmin-data: