-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.service.yml
127 lines (126 loc) · 3.47 KB
/
docker-compose.service.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
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
version: '3'
networks:
openbinetwork: # Default network
services:
openbi-service-registry:
image: 'openbi/service-registry:0.0.1'
container_name: 'openbi-service-registry'
build:
context: ./openbi-service-registry
dockerfile: Dockerfile
ports:
- '8761:8761'
networks:
- openbinetwork
openbi-config-server:
image: 'openbi/config-server:0.0.1'
container_name: 'openbi-config-server'
build:
context: ./openbi-config-server
dockerfile: Dockerfile
environment:
- EUREKA_SERVER_ADDRESS=http://openbi-service-registry:8761/eureka
healthcheck:
test: [ "CMD", "curl", "-f", "http://openbi-config-server:8080/actuator/health" ]
interval: 10s
timeout: 5s
retries: 5
depends_on:
- openbi-service-registry
ports:
- '8080:8080'
networks:
- openbinetwork
openbi-gateway:
image: 'openbi/gateway:0.0.1'
container_name: 'openbi-gateway'
build:
context: ./openbi-gateway
dockerfile: Dockerfile
environment:
- EUREKA_SERVER_ADDRESS=http://openbi-service-registry:8761/eureka
- CONFIG_SERVER_URL=openbi-config-server
healthcheck:
test: [ "CMD", "curl", "-f", "http://openbi-gateway:8000/actuator/health" ]
interval: 10s
timeout: 5s
retries: 5
depends_on:
openbi-config-server:
condition: service_healthy
ports:
- '8000:8000'
networks:
- openbinetwork
openbi-user-service:
image: 'openbi/user-service:0.0.1'
container_name: 'openbi-user-service'
build:
context: ./openbi-user
dockerfile: Dockerfile
environment:
- EUREKA_SERVER_ADDRESS=http://openbi-service-registry:8761/eureka
- CONFIG_SERVER_URL=openbi-config-server
depends_on:
openbi-gateway:
condition: service_healthy
openbi-config-server:
condition: service_healthy
ports:
- '8001:8001'
networks:
- openbinetwork
openbi-ip-service:
image: 'openbi/ip-service:0.0.1'
container_name: 'openbi-ip-service'
build:
context: ./openbi-ip
dockerfile: Dockerfile
environment:
- EUREKA_SERVER_ADDRESS=http://openbi-service-registry:8761/eureka
- CONFIG_SERVER_URL=openbi-config-server
depends_on:
openbi-gateway:
condition: service_healthy
openbi-config-server:
condition: service_healthy
ports:
- '8002:8002'
networks:
- openbinetwork
openbi-aianalytics-service:
image: 'openbi/aianalytics-service:0.0.1'
container_name: 'openbi-aianalytics-service'
build:
context: ./openbi-ai-analytics
dockerfile: Dockerfile
environment:
- EUREKA_SERVER_ADDRESS=http://openbi-service-registry:8761/eureka
- CONFIG_SERVER_URL=openbi-config-server
depends_on:
openbi-gateway:
condition: service_healthy
openbi-config-server:
condition: service_healthy
ports:
- '8003:8003'
networks:
- openbinetwork
openbi-key-service:
image: 'openbi/key-service:0.0.1'
container_name: 'openbi-key-service'
build:
context: ./openbi-ai-key
dockerfile: Dockerfile
environment:
- EUREKA_SERVER_ADDRESS=http://openbi-service-registry:8761/eureka
- CONFIG_SERVER_URL=openbi-config-server
depends_on:
openbi-gateway:
condition: service_healthy
openbi-config-server:
condition: service_healthy
ports:
- '8004:8004'
networks:
- openbinetwork