Using docker configs
This commit is contained in:
parent
fce22f2e30
commit
55393eef33
|
@ -1,28 +1,36 @@
|
||||||
version: '3.5'
|
version: '3.5'
|
||||||
services:
|
services:
|
||||||
front:
|
front:
|
||||||
image: registry.verdnatura.es/salix-front:${TAG}
|
image: registry.verdnatura.es/salix-front:${TAG}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: front/Dockerfile
|
dockerfile: front/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- ${PORT_FRONT}:80
|
- ${PORT_FRONT}:80
|
||||||
links:
|
links:
|
||||||
- back
|
- back
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
back:
|
back:
|
||||||
image: registry.verdnatura.es/salix-back:${TAG}
|
image: registry.verdnatura.es/salix-back:${TAG}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- ${PORT_BACK}:3000
|
- ${PORT_BACK}:3000
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV
|
- NODE_ENV
|
||||||
volumes:
|
configs:
|
||||||
- /mnt/storage/containers/salix:/etc/salix
|
- source: salix_datasources
|
||||||
- /mnt/storage/pdfs:/var/lib/salix/pdfs
|
target: /etc/salix/datasources.json
|
||||||
- /mnt/storage/dms:/var/lib/salix/dms
|
- source: salix-${BRANCH_NAME}_datasources
|
||||||
deploy:
|
target: /etc/salix/datasources.${NODE_ENV}.json
|
||||||
replicas: 6
|
- source: salix_print
|
||||||
|
target: /etc/salix/print.json
|
||||||
|
- source: salix-${BRANCH_NAME}_print
|
||||||
|
target: /etc/salix/print.${NODE_ENV}.json
|
||||||
|
volumes:
|
||||||
|
- /mnt/storage/pdfs:/var/lib/salix/pdfs
|
||||||
|
- /mnt/storage/dms:/var/lib/salix/dms
|
||||||
|
deploy:
|
||||||
|
replicas: 6
|
||||||
|
|
Loading…
Reference in New Issue