-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (66 loc) · 1.73 KB
/
docker-compose.yml
File metadata and controls
67 lines (66 loc) · 1.73 KB
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
version: '3.4'
services:
rabbit:
hostname: rabbit
image: rabbitmq:3.11.1-management
ports:
- "5672:5672"
- "15672:15672"
postgres:
image: postgres:13-alpine
environment:
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
mongodb:
image: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=myPassword1
volumes:
- mongodb-data:/data/db
ports:
- "27017:27017"
restart: unless-stopped
web:
build:
context: ./src
dockerfile: ./Web/Web.API/Dockerfile
ports:
- "5000:80"
environment:
- RABBIT_HOST=rabbit
- RABBIT_LOGIN=guest
- RABBIT_PASSWORD=guest
depends_on:
- rabbit
shop:
build:
context: ./src
dockerfile: ./Shop/Shop.Application/Dockerfile
environment:
- RABBIT_HOST=rabbit
- RABBIT_LOGIN=guest
- RABBIT_PASSWORD=guest
- PrefetchCount=100
- ConnectionStrings__POSTGRES=User ID=postgres;Password=password;Server=postgres;Port=5432;Database=shop;Integrated Security=true;
- ConnectionStrings__MongoDb=mongodb://root:myPassword1@mongodb:27017
depends_on:
- postgres
- mongodb
- rabbit
stock:
build:
context: ./src
dockerfile: ./Stock/Stock.Application/Dockerfile
environment:
- RABBIT_HOST=rabbit
- RABBIT_LOGIN=guest
- RABBIT_PASSWORD=guest
- PrefetchCount=100
- ConnectionStrings__POSTGRES=User ID=postgres;Password=password;Server=postgres;Port=5432;Database=stock;Integrated Security=true;
depends_on:
- postgres
- rabbit
volumes:
mongodb-data: