#814 Docker deploy fixes
This commit is contained in:
parent
a5897c7808
commit
6b8b9e2be7
|
@ -36,6 +36,10 @@ node {
|
||||||
env.COMPOSE_PROJECT_NAME = 'salix'
|
env.COMPOSE_PROJECT_NAME = 'salix'
|
||||||
env.DOCKER_TLS_VERIFY = 1
|
env.DOCKER_TLS_VERIFY = 1
|
||||||
|
|
||||||
|
if (env.BRANCH_NAME != 'master') {
|
||||||
|
env.COMPOSE_PROJECT_NAME = '${env.BRANCH_NAME}-salix'
|
||||||
|
}
|
||||||
|
|
||||||
env.DOCKER_HOST = 'tcp://vch2.verdnatura.es:2376';
|
env.DOCKER_HOST = 'tcp://vch2.verdnatura.es:2376';
|
||||||
sh "docker-compose up -d"
|
sh "docker-compose up -d"
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,18 +5,16 @@ services:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: services/nginx/Dockerfile
|
dockerfile: services/nginx/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- 5000:80
|
- 80:80
|
||||||
image: salix:latest
|
image: salix:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
links:
|
links:
|
||||||
- api
|
- api
|
||||||
api:
|
api:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
|
||||||
- 3001-3003:3000
|
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: test
|
NODE_ENV: test
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: salix-api
|
image: salix-api
|
||||||
volumes:
|
volumes:
|
||||||
- /config:/config
|
- /salix:/etc/salix
|
||||||
|
|
Loading…
Reference in New Issue