Using docker configs
This commit is contained in:
parent
fce22f2e30
commit
55393eef33
|
@ -1,28 +1,36 @@
|
|||
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: unless-stopped
|
||||
build: .
|
||||
ports:
|
||||
- ${PORT_BACK}:3000
|
||||
environment:
|
||||
- NODE_ENV
|
||||
volumes:
|
||||
- /mnt/storage/containers/salix:/etc/salix
|
||||
- /mnt/storage/pdfs:/var/lib/salix/pdfs
|
||||
- /mnt/storage/dms:/var/lib/salix/dms
|
||||
deploy:
|
||||
replicas: 6
|
||||
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: unless-stopped
|
||||
build: .
|
||||
ports:
|
||||
- ${PORT_BACK}:3000
|
||||
environment:
|
||||
- NODE_ENV
|
||||
configs:
|
||||
- source: salix_datasources
|
||||
target: /etc/salix/datasources.json
|
||||
- source: salix-${BRANCH_NAME}_datasources
|
||||
target: /etc/salix/datasources.${NODE_ENV}.json
|
||||
- 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