-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
143 lines (133 loc) · 3.5 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
version: '3.4'
networks:
qna-network:
driver: bridge
services:
jgcarmona.qna.api:
image: ${DOCKER_REGISTRY-}jgcarmonaqnaapi
networks:
- qna-network
build:
context: .
dockerfile: src/Jgcarmona.Qna.Api/Dockerfile
ports:
- "7100:7100" # HTTP
- "7101:7001" # HTTPS
depends_on:
- sqlserver
- rabbitmq
- seq
- mongo
- jgcarmona.qna.services.syncservice
- jgcarmona.qna.services.statsservice
- jgcarmona.qna.services.notificationservice
volumes:
- ${USERPROFILE}/.aspnet/https:/https/
jgcarmona.qna.services.syncservice:
image: ${DOCKER_REGISTRY-}jgcarmonaqnaservicessyncservice
networks:
- qna-network
build:
context: .
dockerfile: src/Jgcarmona.Qna.Services.SyncService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- DOTNET_ENVIRONMENT=Development
depends_on:
- rabbitmq
- seq
- mongo
jgcarmona.qna.services.statsservice:
image: ${DOCKER_REGISTRY-}jgcarmonaqnaservicesstatsservice
networks:
- qna-network
build:
context: .
dockerfile: src/Jgcarmona.Qna.Services.StatsService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- DOTNET_ENVIRONMENT=Development
depends_on:
- rabbitmq
- seq
- mongo
jgcarmona.qna.services.notificationservice:
image: ${DOCKER_REGISTRY-}jgcarmonaqnaservicesnotificationservice
networks:
- qna-network
build:
context: .
dockerfile: src/Jgcarmona.Qna.Services.NotificationService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- DOTNET_ENVIRONMENT=Development
depends_on:
- rabbitmq
- seq
sqlserver:
image: mcr.microsoft.com/mssql/server:2019-latest
networks:
- qna-network
user: root
container_name: SqlServerContainer
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: "YourStrong@Passw0rd"
ports:
- "1433:1433"
volumes:
- ./infrastructure/docker/sqlserver-data:/var/opt/mssql/data
rabbitmq:
image: rabbitmq:3-management
networks:
- qna-network
hostname: rabbitmq
container_name: RabbitMqContainer
environment:
RABBITMQ_DEFAULT_USER: qnauser
RABBITMQ_DEFAULT_PASS: P@ssw0rd!
ports:
- "5672:5672" # AMQP
- "15672:15672" # Management
volumes:
- ./infrastructure/docker/rabbitmq-data:/var/lib/rabbitmq
seq:
image: datalust/seq:latest
networks:
- qna-network
container_name: SeqContainer
environment:
ACCEPT_EULA: "Y"
SEQ_API_KEY: "SeqApiKey"
ports:
- "5341:80" # Web interface
- "5342:443" # HTTPS interface
volumes:
- ./infrastructure/docker/seq-data:/data
mongo:
image: mongo:latest
networks:
- qna-network
container_name: MongoDbContainer
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: examplepassword
ports:
- "27017:27017"
volumes:
- ./infrastructure/docker/mongo-data:/data/db
mongo-express:
image: mongo-express:latest
networks:
- qna-network
container_name: MongoExpressContainer
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: examplepassword
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_MONGODB_URL: mongodb://root:examplepassword@mongo:27017/
ports:
- "8081:8081"
restart: on-failure
depends_on:
- mongo