-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (62 loc) · 1.66 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
version: "3.9"
services:
rabbitmq:
container_name: "IntelTech.Common.Bus"
image: masstransit/rabbitmq:latest
ports:
- "5672:5672"
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=rabbitmq-user
- RABBITMQ_DEFAULT_PASS=rabbitmq-password
healthcheck:
test: [ "CMD", "rabbitmqctl", "status" ]
interval: 5s
timeout: 10s
retries: 10
postgres:
container_name: "IntelTech.Organizations.Database"
image: "postgres:latest"
ports:
- "5432:5432"
environment:
- "POSTGRES_USER=postgres-user"
- "POSTGRES_PASSWORD=postgres-password"
- "POSTGRES_DB=organizations"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 5s
timeout: 10s
retries: 10
users-service:
restart: on-failure
container_name: "IntelTech.Users.Service"
image: "users-service:latest"
depends_on:
rabbitmq:
condition: service_healthy
build:
context: IntelTech.Users
dockerfile: Dockerfile
ports:
- "5100:80"
environment:
- ASPNETCORE_ENVIRONMENT=Staging
- ASPNETCORE_URLS=http://+:80
organizations-service:
restart: on-failure
container_name: "IntelTech.Organizations.Service"
image: "organizations-service:latest"
depends_on:
rabbitmq:
condition: service_healthy
postgres:
condition: service_healthy
build:
context: IntelTech.Organizations
dockerfile: Dockerfile
ports:
- "5200:80"
environment:
- ASPNETCORE_ENVIRONMENT=Staging
- ASPNETCORE_URLS=http://+:80