-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (65 loc) · 1.84 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
version: '2.1'
services:
config-server:
image: powsybl/powsybl-server-config:latest
ports:
- ${CONFIG_SERVER_PORT}:${CONFIG_SERVER_PORT}
healthcheck:
test: curl -s http://localhost:${CONFIG_SERVER_PORT}/actuator/health 2>&1 | grep UP
interval: 5s
timeout: 5s
retries: 3
environment:
- CONFIG_SERVER_PORT
volumes:
- $HOME/config:/config:Z
discovery-server:
image: powsybl/powsybl-server-discovery:latest
depends_on:
config-server:
condition: service_healthy
ports:
- ${DISCOVERY_SERVER_PORT}:${DISCOVERY_SERVER_PORT}
healthcheck:
test: curl -s http://localhost:${DISCOVERY_SERVER_PORT}/actuator/health 2>&1 | grep UP
interval: 5s
timeout: 5s
retries: 3
environment:
- CONFIG_SERVER_PORT
- DISCOVERY_SERVER_PORT
storage-server:
image: powsybl/powsybl-server-storage:latest
depends_on:
discovery-server:
condition: service_healthy
ports:
- ${STORAGE_SERVER_PORT}:${STORAGE_SERVER_PORT}
healthcheck:
test: curl -s http://localhost:${STORAGE_SERVER_PORT}/actuator/health 2>&1 | grep UP
interval: 5s
timeout: 5s
retries: 3
environment:
- CONFIG_SERVER_PORT
- DISCOVERY_SERVER_PORT
- STORAGE_SERVER_PORT
volumes:
- $HOME/storage:/storage:Z
- $HOME/.itools:/root/.itools:Z
network-server:
image: powsybl/powsybl-server-network:latest
depends_on:
storage-server:
condition: service_healthy
ports:
- ${NETWORK_SERVER_PORT}:${NETWORK_SERVER_PORT}
healthcheck:
test: curl -s http://localhost:${NETWORK_SERVER_PORT}/actuator/health 2>&1 | grep UP
interval: 5s
timeout: 5s
retries: 3
environment:
- CONFIG_SERVER_PORT
- DISCOVERY_SERVER_PORT
- NETWORK_SERVER_PORT