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:
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