Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (58 sloc) 1.67 KB
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