Repository navigation
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
72 lines (72 loc) · 1.72 KB
/
Copy pathdocker-compose.test.yml
File metadata and controls
72 lines (72 loc) · 1.72 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
version: '2.1'
services:
mongodb:
container_name: mongodb
image: kumargauravgupta3/mongodb:1.0-SNAPSHOT
ports:
- '27018:27017'
discovery:
container_name: discovery
image: kumargauravgupta3/discovery-service-docker:1.0-SNAPSHOT
ports:
- '8761:8761'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8761"]
interval: 30s
timeout: 10s
retries: 5
config:
container_name: config
image: kumargauravgupta3/fake-config-docker:1.0-SNAPSHOT
ports:
- '8888:8888'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8888/spring-config-service/default"]
interval: 30s
timeout: 10s
retries: 5
environment:
- extra=-Dspring.cloud.config.server.git.searchPaths=config-test
links:
- discovery
depends_on:
discovery:
condition: service_healthy
auth:
container_name: auth
image: kumargauravgupta3/auth-service-docker:1.0-SNAPSHOT
ports:
- '9001:9001'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9001"]
interval: 30s
timeout: 10s
retries: 5
links:
- config
- discovery
- mongodb
depends_on:
config:
condition: service_healthy
user:
container_name: user
image: kumargauravgupta3/user-service-docker:1.0-SNAPSHOT
ports:
- '9002:9002'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9002"]
interval: 30s
timeout: 10s
retries: 5
links:
- config
- discovery
- mongodb
depends_on:
config:
condition: service_healthy
discovery:
condition: service_healthy
mongodb:
condition: service_started