-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
59 lines (58 loc) · 1.67 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
version: '3'
services:
app-seed1:
image: "lostintime/hello-akka:0.1.1"
command: -Dakka.cluster.seed-nodes.0=akka.tcp://HelloAkka@app-seed1:2552
-Dakka.cluster.seed-nodes.1=akka.tcp://HelloAkka@app-seed2:2552
-jar /app/hello-akka.jar
environment:
- 'PUBLISH_HOST=app-seed1'
stop_grace_period: 15s
deploy:
mode: replicated
replicas: 1 # DO NOT SCALE THIS SERVICE!
update_config:
parallelism: 1
delay: 15s
restart_policy:
condition: any
delay: 20s
max_attempts: 8
window: 3m
app-seed2:
image: "lostintime/hello-akka:0.1.1"
command: -Dakka.cluster.seed-nodes.0=akka.tcp://HelloAkka@app-seed1:2552
-Dakka.cluster.seed-nodes.1=akka.tcp://HelloAkka@app-seed2:2552
-jar /app/hello-akka.jar
environment:
- 'PUBLISH_HOST=app-seed2'
stop_grace_period: 15s
deploy:
mode: replicated
replicas: 1 # DO NOT SCALE THIS SERVICE!
update_config:
parallelism: 1
delay: 15s
restart_policy:
condition: any
delay: 20s
max_attempts: 8
window: 3m
app:
image: "lostintime/hello-akka:0.1.1"
command: -Dakka.cluster.seed-nodes.0=akka.tcp://HelloAkka@app-seed1:2552
-Dakka.cluster.seed-nodes.0=akka.tcp://HelloAkka@app-seed2:2552
-Dakka.cluster.roles.0=worker
-jar /app/hello-akka.jar
stop_grace_period: 15s
deploy:
mode: replicated
replicas: 1
update_config:
parallelism: 1
delay: 15s
restart_policy:
condition: any
delay: 20s
max_attempts: 8
window: 3m