Docker compose fixes
gitea/salix/test There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2019-12-23 12:06:05 +01:00
parent 3b4b0be167
commit 1565bc3a92
1 changed files with 13 additions and 3 deletions

View File

@ -2,18 +2,19 @@ version: '3.5'
services: services:
front: front:
image: registry.verdnatura.es/salix-front:${TAG} image: registry.verdnatura.es/salix-front:${TAG}
restart: unless-stopped
build: build:
context: . context: .
dockerfile: front/Dockerfile dockerfile: front/Dockerfile
ports: ports:
- ${PORT_FRONT}:80 - ${PORT_FRONT}:80
links:
- back
deploy: deploy:
replicas: 3 replicas: 3
back: back:
image: registry.verdnatura.es/salix-back:${TAG} image: registry.verdnatura.es/salix-back:${TAG}
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
restart: unless-stopped restart: unless-stopped
build: . build: .
ports: ports:
@ -34,3 +35,12 @@ services:
- /mnt/storage/dms:/var/lib/salix/dms - /mnt/storage/dms:/var/lib/salix/dms
deploy: deploy:
replicas: 6 replicas: 6
configs:
salix_datasources:
external: true
salix-${BRANCH_NAME}_datasources:
external: true
salix_print:
external: true
salix-${BRANCH_NAME}_print:
external: true