-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
82 lines (80 loc) · 2.39 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
version: '3.9'
services:
cart:
build:
dockerfile: ./Cart/Dockerfile
context: ./backend
ports:
- '8001:80'
- '9001:443'
environment:
ASPNETCORE_URLS: https://+:443;http://+:80
ASPNETCORE_Kestrel__Certificates__Default__Password: development
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/aspnetapp.pfx
ASPNETCORE_ENVIRONMENT: 'Development'
ConnectionStrings__MongoDb: 'mongodb://root:localpassword@mongo:27017'
volumes:
- '~/.aspnet/https:/https:ro'
orders:
build:
dockerfile: ./Orders/Dockerfile
context: ./backend
ports:
- '8002:80'
- '9002:443'
environment:
ASPNETCORE_URLS: https://+:443;http://+:80
ASPNETCORE_Kestrel__Certificates__Default__Password: development
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/aspnetapp.pfx
ASPNETCORE_ENVIRONMENT: 'Development'
ConnectionStrings__MongoDb: 'mongodb://root:localpassword@mongo:27017'
volumes:
- '~/.aspnet/https:/https:ro'
shipping:
build:
dockerfile: ./Shipping/Dockerfile
context: ./backend
ports:
- '8003:80'
- '9003:443'
environment:
ASPNETCORE_URLS: https://+:443;http://+:80
ASPNETCORE_Kestrel__Certificates__Default__Password: development
ASPNETCORE_Kestrel__Certificates__Default__Path: /https/aspnetapp.pfx
ASPNETCORE_ENVIRONMENT: 'Development'
ConnectionStrings__MongoDb: 'mongodb://root:localpassword@mongo:27017'
volumes:
- '~/.aspnet/https:/https:ro'
# Message broker
rabbitmq:
build: rabbitmq
volumes:
- rabbitmq_etc:/etc/rabbitmq/
- rabbitmq_data:/var/lib/rabbitmq/
- rabbitmq_logs:/var/log/rabbitmq/
ports:
- 5672:5672 # amqp endpoint
- 15672:15672 # admin portal
# Mongo DB for persistance
mongo:
image: 'bitnami/mongodb:latest'
environment:
MONGODB_ADVERTISED_HOSTNAME: mongo
MONGODB_REPLICA_SET_MODE: primary
MONGODB_ROOT_PASSWORD: localpassword
MONGODB_REPLICA_SET_KEY: replicasetkey123
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: localpassword
# MONGO_INITDB_DATABASE: my-service
MONGO_REPLICA_SET_NAME: rs0
ports:
- 27017:27017
volumes:
- 'mongodb_volume:/bitnami'
volumes:
mongodb_volume:
driver: local
rabbitmq_etc:
rabbitmq_data:
rabbitmq_logs:
key_cloak_data: