-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (75 loc) · 2.23 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
services:
hr-config-server:
environment:
- GITHUB_USER=walacetalesfs
- GITHUB_PASS=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
image: hr-config-server:v1
container_name: hr-config-server
build:
context: ./hr-config-server
dockerfile: Dockerfile
ports:
- '8888:8888'
healthcheck:
test: curl http://localhost:8888/config-server/health
hr-user-pg12:
environment:
- POSTGRES_PASSWORD=1234567
- POSTGRES_DB=db_hr_user
image: postgres:12-alpine
container_name: hr-user-pg12
ports:
- '5433:5432'
hr-eureka-server:
image: hr-eureka-server:v1
container_name: hr-eureka-server
build:
context: ./hr-eureka-server
dockerfile: Dockerfile
ports:
- '8761:8761'
healthcheck:
test: curl http://localhost:8761/eureka-server/health
depends_on:
hr-config-server:
condition: service_healthy
hr-user:
image: hr-user:v1
container_name: hr-oauth
build:
context: ./hr-worker
dockerfile: Dockerfile
depends_on:
hr-config-server:
condition: service_healthy
hr-eureka-server:
condition: service_healthy
hr-oauth:
image: hr-oauth:v1
build:
context: ./hr-oauth
dockerfile: Dockerfile
depends_on:
hr-config-server:
condition: service_healthy
hr-eureka-server:
condition: service_healthy
hr-api-gateway-zuul:
image: hr-api-gateway-zuul:v1
container_name: hr-api-gateway-zuul
build:
context: ./hr-api-gateway-zuul
dockerfile: Dockerfile
ports:
- '8765:8765'
depends_on:
hr-config-server:
condition: service_healthy
hr-eureka-server:
condition: service_healthy
# hr-worker:
# image: hr-config-server:v1
# build:
# context: ./hr-worker
# dockerfile: Dockerfile
# network_mode: hr-net