This commit is contained in:
Vicente Falco 2017-09-04 13:35:53 +02:00
parent fa64931cc2
commit 70d9152a63
2 changed files with 58 additions and 35 deletions

View File

@ -1,22 +1,69 @@
version: '2' version: '2'
environment:
- branchName=${env.BRANCH_NAME}
- NODE_ENV=
- dockerHost=
services: services:
salix: auth:
container_name: ${branchName}-auth
docker_host: ${dockerHost}
build: build:
context: ./services/salix context: ./services/auth
ports: expose:
- "3001:3001" - "3000"
account:
build:
context: ./services/account
ports: ports:
- "3000:3000" - "3000:3000"
nginx:
salix:
container_name: ${branchName}-salix
docker_host: ${dockerHost}
build: build:
context: ./@salix context: ./services/salix
expose:
- "3001"
ports: ports:
- "8080:8080" - "3001:3001"
client: client:
container_name: ${branchName}-client
docker_host: ${dockerHost}
build: build:
context: ./services/client context: ./services/client
expose:
- "3002"
ports: ports:
- "3002:3002" - "3002:3002"
mailer:
container_name: ${branchName}-mailer
docker_host: ${dockerHost}
build:
context: ./services/mailer
expose:
- "3003"
ports:
- "3003:3003"
production:
container_name: ${branchName}-production
docker_host: ${dockerHost}
build:
context: ./services/production
expose:
- "3004"
ports:
- "3004:3004"
nginx:
container_name: ${branchName}-nginx
docker_host: ${dockerHost}
build:
context: ./services/nginx
ports:
- "80:8080"
links:
- "auth:${branchName}-auth"
- "salix:${branchName}-salix"
- "client:${branchName}-client"
- "mailer:${branchName}-mailer"
- "production:${branchName}-production"

View File

@ -1,24 +0,0 @@
[
{
"uid": "salix",
"append": true,
"watch": true,
"script": "server.js",
"sourceDir": "./services/salix/server",
"workingDir": "."
}, {
"uid": "auth",
"append": true,
"watch": true,
"script": "server.js",
"sourceDir": "./services/auth/server",
"workingDir": "."
}, {
"uid": "client",
"append": true,
"watch": true,
"script": "server.js",
"sourceDir": "./services/client/server",
"workingDir": "."
}
]