From 35896cc9a2f10b0d49db90803e7edf811e51f2dd Mon Sep 17 00:00:00 2001 From: lefteris Date: Wed, 17 Mar 2021 20:49:08 +0200 Subject: [PATCH] docker-compose --- docker-compose.yml | 57 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..ced780d3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,57 @@ +version: "3.8" + +services: + redisserver: + image: hub.swarmlab.io:5480/playground-redisserver:latest + deploy: + mode: replicated + restart_policy: + delay: 10s + #max_attempts: 10 + window: 60s + replicas: 1 + placement: + max_replicas_per_node: 1 + constraints: + - node.id==${noderead} + ports: + - "6379:6379" + networks: + playground-net: + readmongo: + image: nodejs-test-app:latest + deploy: + mode: replicated + restart_policy: + delay: 10s + #max_attempts: 10 + window: 60s + replicas: 1 + placement: + max_replicas_per_node: 1 + constraints: + - node.id==${noderead} + ports: + - "3000:3000" + networks: + playground-net: + client: + image: playground-client + deploy: + mode: replicated + restart_policy: + delay: 10s + #max_attempts: 10 + window: 60s + replicas: 1 + placement: + max_replicas_per_node: 1 + constraints: + - node.id==${noderead} + ports: + - "8080:8080" + networks: + playground-net: + +networks: + playground-net: