-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.override.yml
98 lines (89 loc) · 2.29 KB
/
docker-compose.override.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
services:
ocelot-api-gateway:
restart: always
environment:
- ASPNETCORE_ENVIRONMENT=Production
ports:
- "7000:8080"
depends_on:
- identity-api
- job-api
- payment-api
identity-api:
restart: always
environment:
- ASPNETCORE_ENVIRONMENT=Production
- RabbitMQConfigurationInfo__ConnectionString=rabbitmq
- ConnectionString=Server=identity-MySqlDB; User Id=IdentityService; Database=IdentityServiceDB; Password=identity_service_password; charset=utf8
- HTTP_PORT=8001
- GRPC_PORT=8002
ports:
- "7001:8001"
- "7101:8002"
depends_on:
- identity-MySqlDB
- rabbitmq
identity-MySqlDB:
restart: always
environment:
MYSQL_DATABASE: IdentityServiceDB
MYSQL_USER: IdentityService
MYSQL_PASSWORD: 'identity_service_password'
MYSQL_ROOT_PASSWORD: 'identity_service_password'
ports:
- "7011:3306"
job-api:
restart: always
environment:
- ASPNETCORE_ENVIRONMENT=Production
- RabbitMQConfigurationInfo__ConnectionString=rabbitmq
- ConnectionString=Server=job-SqlServerDB; User Id=sa; Database=JobServiceDB; Password=JobServicePassword@123; MultipleActiveResultSets=true; TrustServerCertificate=True;
- HTTP_PORT=8002
ports:
- "7002:8002"
depends_on:
- job-SqlServerDB
- rabbitmq
job-SqlServerDB:
restart: always
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=JobServicePassword@123
ports:
- "7012:1433"
payment-api:
restart: always
environment:
- ASPNETCORE_ENVIRONMENT=Production
- DatabaseConfiguration__ConnectionString=mongodb://payment-mongoDB
- RedisConnectionString=payment-redisDB
- RabbitMQConfigurationInfo__ConnectionString=rabbitmq
- HTTP_PORT=8003
ports:
- "7003:8003"
depends_on:
- payment-mongoDB
- payment-redisDB
- rabbitmq
payment-mongoDB:
restart: always
volumes:
- jobs-mongoDB:/data/db
ports:
- "7013:27017"
payment-redisDB:
restart: always
volumes:
- jobs-redisDB:/data
ports:
- "7033:6379"
rabbitmq:
restart: always
ports:
- "7004:15672"
- "7005:5672"
volumes:
jobs-mongoDB:
external: false
jobs-redisDB:
external: false