From 1565bc3a9204d0b772d93faafe9eb527a32cd660 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Mon, 23 Dec 2019 12:06:05 +0100 Subject: [PATCH] Docker compose fixes --- docker-compose.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ab421909c..01aaa3997 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,18 +2,19 @@ version: '3.5' services: front: image: registry.verdnatura.es/salix-front:${TAG} - restart: unless-stopped build: context: . dockerfile: front/Dockerfile ports: - ${PORT_FRONT}:80 - links: - - back deploy: replicas: 3 back: image: registry.verdnatura.es/salix-back:${TAG} + restart_policy: + condition: on-failure + delay: 5s + max_attempts: 3 restart: unless-stopped build: . ports: @@ -34,3 +35,12 @@ services: - /mnt/storage/dms:/var/lib/salix/dms deploy: replicas: 6 +configs: + salix_datasources: + external: true + salix-${BRANCH_NAME}_datasources: + external: true + salix_print: + external: true + salix-${BRANCH_NAME}_print: + external: true