From 4743b464a67d7363cfc4358efdf876ce5758dd35 Mon Sep 17 00:00:00 2001 From: Mano Marks Date: Mon, 9 Jan 2017 14:42:37 -0800 Subject: [PATCH] changing docker-stack.yml to more closely match the rest of the app, and add a visualizer --- docker-stack.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/docker-stack.yml b/docker-stack.yml index 2c30529..d5ead8e 100644 --- a/docker-stack.yml +++ b/docker-stack.yml @@ -6,7 +6,7 @@ services: ports: - "6379" networks: - - front-tier + - frontend deploy: replicas: 2 update_config: @@ -19,7 +19,7 @@ services: volumes: - db-data:/var/lib/postgresql/data networks: - - back-tier + - backend deploy: placement: constraints: [node.role == manager] @@ -28,7 +28,7 @@ services: ports: - 5000:80 networks: - - front-tier + - frontend depends_on: - redis deploy: @@ -42,7 +42,7 @@ services: ports: - 5001:80 networks: - - back-tier + - backend depends_on: - db deploy: @@ -56,8 +56,8 @@ services: worker: image: dockersamples/examplevotingapp_worker networks: - - front-tier - - back-tier + - frontend + - backend deploy: mode: replicated replicas: 1 @@ -67,10 +67,17 @@ services: delay: 10s max_attempts: 3 window: 120s + visualizer: + image: manomarks/visualizer + ports: + - "8080:8080" + stop_grace_period: 1m30s + volumes: + - "/var/run/docker.sock:/var/run/docker.sock" networks: - front-tier: - back-tier: + frontend: + backend: volumes: - db-data: + db-data: \ No newline at end of file