-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
96 lines (95 loc) · 2.09 KB
/
compose.yaml
File metadata and controls
96 lines (95 loc) · 2.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
92
93
94
95
96
name: fitapp
services:
frontend:
container_name: frontend
build: ./frontend
ports:
- 7777:80
gateway:
container_name: gateway
build:
context: .
dockerfile: FITApp.Gateway/Dockerfile
ports:
- "7000:8080"
env_file:
- .env
identity-service:
container_name: identity-service
build:
context: .
dockerfile: FITApp.IdentityService/Dockerfile
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
employees-service:
condition: service_healthy
employees-service:
container_name: employees-service
build:
context: .
dockerfile: FITApp.EmployeesService/Dockerfile
env_file:
- .env
depends_on:
mongo:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:5002/_health || exit 1"]
interval: 10s
timeout: 10s
retries: 10
publications-service:
container_name: publications-service
build:
context: .
dockerfile: FITApp.PublicationsService/Dockerfile
env_file:
- .env
depends_on:
- publications-service-mongo
postgres:
container_name: postgres
image: postgres:latest
ports:
- 7001:5432
env_file:
- .env
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 10s
retries: 10
mongo:
container_name: mongo
image: mongo:latest
ports:
- 7002:27017
volumes:
- mongo-data:/data/db
env_file:
- .env
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh mongo:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
publications-service-mongo:
container_name: publications-mongo
image: mongo:latest
command: mongod --port 27018
ports:
- 7003:27018
volumes:
- publications-mongo-data:/data/db
env_file:
- .env
volumes:
mongo-data:
postgres-data:
publications-mongo-data: