#814 Docker deploy fixes

This commit is contained in:
Juan Ferrer 2019-01-02 01:16:28 +01:00
parent a5897c7808
commit 6b8b9e2be7
2 changed files with 6 additions and 4 deletions

4
Jenkinsfile vendored
View File

@ -36,6 +36,10 @@ node {
env.COMPOSE_PROJECT_NAME = 'salix'
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';
sh "docker-compose up -d"
}

View File

@ -5,18 +5,16 @@ services:
context: .
dockerfile: services/nginx/Dockerfile
ports:
- 5000:80
- 80:80
image: salix:latest
restart: unless-stopped
links:
- api
api:
build: .
ports:
- 3001-3003:3000
environment:
NODE_ENV: test
restart: unless-stopped
image: salix-api
volumes:
- /config:/config
- /salix:/etc/salix