-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
91 lines (83 loc) · 3.09 KB
/
docker-compose.prod.yml
File metadata and controls
91 lines (83 loc) · 3.09 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '2.0'
# Set ASPNETCORE_ENVIRONMENT= Development or Production, depending if you want to show up errors while testing.
#
# You need to start it with the following CLI command:
# docker-compose -f docker-compose.yml -f docker-compose.prod.yml up
services:
mssqllocaldb:
container_name: mssqllocaldb
environment:
SA_PASSWORD: "Your_password123"
ACCEPT_EULA: "Y"
ports:
- "1433"
rabbitmq:
container_name: rabbitmq
#environment:
#- RABBITMQ_DEFAULT_USER=guest
#- RABBITMQ_DEFAULT_PASS=guest
ports:
- "5672"
- "15672"
hwproj.apigateway.api:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:80
- Services:Auth=http://hwproj.authservice.api
- Services:Courses=http://hwproj.coursesservice.api
- Services:Solutions=http://hwproj.solutionsservice.api
- Services:Content=http://hwproj.contentservice.api
ports:
- "80"
hwproj.authservice.api:
environment:
- ConnectionStrings:DefaultConnection=Server=mssqllocaldb;Database=AuthServiceDB;User=sa;Password=Your_password123;
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:80
- EventBus:EventBusHostName=rabbitmq
ports:
- "80"
#volumes:
#- /root/.microsoft/usersecrets:/root/.microsoft/usersecrets:ro
#- ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
hwproj.coursesservice.api:
environment:
- ConnectionStrings:DefaultConnection=Server=mssqllocaldb;Database=CourseWorksServiceDB;MultipleActiveResultSets=True;User=sa;Password=Your_password123;
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:80
- EventBus:EventBusHostName=rabbitmq
- Services:Auth=http://hwproj.authservice.api
ports:
- "80"
hwproj.notificationsservice.api:
environment:
- ConnectionStrings:DefaultConnection=Server=mssqllocaldb;Database=NotificationsServiceDB;MultipleActiveResultSets=True;User=sa;Password=Your_password123;
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:80
- EventBus:EventBusHostName=rabbitmq
- Services:Auth=http://hwproj.authservice.api
- Services:Courses=http://hwproj.coursesservice.api
- Services:Solutions=http://hwproj.solutionsservice.api
ports:
- "80"
hwproj.solutionsservice.api:
environment:
- ConnectionStrings:DefaultConnection=Server=mssqllocaldb;Database=SolutionServiceDB;User=sa;Password=Your_password123;
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:80
- EventBus:EventBusHostName=rabbitmq
- Services:Auth=http://hwproj.authservice.api
- Services:Courses=http://hwproj.coursesservice.api
ports:
- "80"
volumes:
- /root/.asp.net/https:/root/.aspnet/https:ro
#- ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
hwproj.contentservice.api:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:80
- EventBus:EventBusHostName=rabbitmq
- Services:Auth=http://hwproj.authservice.api
ports:
- "80"