-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
126 lines (120 loc) · 3.77 KB
/
docker-compose.yml
File metadata and controls
126 lines (120 loc) · 3.77 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
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
services:
postgres:
image: postgres
restart: always
#ports:
# - "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 30s
timeout: 60s
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: P@ssw0rd
volumes:
- local_pgdata:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
restart: always
ports:
- "8888:80"
depends_on:
postgres:
condition: service_healthy
environment:
PGADMIN_DEFAULT_EMAIL: vdolosa@gmail.com
PGADMIN_DEFAULT_PASSWORD: P@ssw0rd
volumes:
- pgadmin-data:/var/lib/pgadmin
mtrabbitmq:
image: masstransit/rabbitmq:latest
ports:
- "15672:15672"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:15672"]
interval: 10s
timeout: 5s
retries: 10
samplemt.service.api:
container_name: "samplemt.service.api"
image: ${DOCKER_REGISTRY-}samplemtservice
build:
context: .
dockerfile: SampleMT.Service/Dockerfile
depends_on:
mtrabbitmq:
condition: service_healthy
postgres:
condition: service_healthy
#samplemt.service.worker:
# condition: service_healthy
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8080/healthz || exit 1
interval: 10s
timeout: 5s
environment:
Modules__0__name: "MassTransit"
Modules__0__provider__name: "RabbitMQ"
Modules__0__provider__host: "mtrabbitmq"
Modules__0__provider__virtualHost: "/"
Modules__0__provider__user: "guest"
Modules__0__provider__password: "guest"
Modules__0__subModules__0: "Processor"
#Modules__0__subModules__1: "SagaStateMachine"
#Modules__0__subModules__2: "GetForecastMessageJobConsumer"
Modules__1: "WebApi"
samplemt.service.statemachine:
container_name: "samplemt.service.statemachine"
image: ${DOCKER_REGISTRY-}samplemtservice
build:
context: .
dockerfile: SampleMT.Service/Dockerfile
depends_on:
mtrabbitmq:
condition: service_healthy
postgres:
condition: service_healthy
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8080/healthz || exit 1
interval: 10s
timeout: 5s
start_period: 10s
retries: 10
environment:
Modules__0__name: "MassTransit"
Modules__0__provider__name: "RabbitMQ"
Modules__0__provider__host: "mtrabbitmq"
Modules__0__provider__virtualHost: "/"
Modules__0__provider__user: "guest"
Modules__0__provider__password: "guest"
Modules__0__persistence__name: "InMemory"
#Modules__0__persistence__name: "Marten"
#Modules__0__persistence__connectionstring: "host=postgres;port=5432;database=postgres;username=postgres;password=P@ssw0rd;"
Modules__0__subModules__0: "SagaStateMachine"
samplemt.service.worker:
container_name: "samplemt.service.worker"
image: ${DOCKER_REGISTRY-}samplemtservice
build:
context: .
dockerfile: SampleMT.Service/Dockerfile
depends_on:
mtrabbitmq:
condition: service_healthy
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8080/healthz || exit 1
interval: 10s
timeout: 5s
start_period: 10s
retries: 10
environment:
Modules__0__name: "MassTransit"
Modules__0__provider__name: "RabbitMQ"
Modules__0__provider__host: "mtrabbitmq"
Modules__0__provider__virtualHost: "/"
Modules__0__provider__user: "guest"
Modules__0__provider__password: "guest"
Modules__0__subModules__0: "GetForecastMessageJobConsumer"
#Modules__0__subModules__1: "RequestForecastsConsumer"
volumes:
local_pgdata:
pgadmin-data: