salix/docker-compose.yml

69 lines
1.6 KiB
YAML
Raw Normal View History

2016-11-17 09:18:11 +00:00
version: '2'
2017-09-04 11:35:53 +00:00
environment:
- branchName=${env.BRANCH_NAME}
- NODE_ENV=
- dockerHost=
2016-11-17 09:18:11 +00:00
services:
2017-09-04 11:35:53 +00:00
auth:
container_name: ${branchName}-auth
docker_host: ${dockerHost}
2016-12-14 07:43:10 +00:00
build:
2017-09-04 11:35:53 +00:00
context: ./services/auth
expose:
- "3000"
2016-12-14 07:43:10 +00:00
ports:
- "3000:3000"
2017-09-04 11:35:53 +00:00
salix:
container_name: ${branchName}-salix
docker_host: ${dockerHost}
2016-12-14 07:43:10 +00:00
build:
2017-09-04 11:35:53 +00:00
context: ./services/salix
expose:
- "3001"
2016-12-14 07:43:10 +00:00
ports:
2017-09-04 11:35:53 +00:00
- "3001:3001"
2016-12-14 07:43:10 +00:00
client:
2017-09-04 11:35:53 +00:00
container_name: ${branchName}-client
docker_host: ${dockerHost}
2016-12-14 07:43:10 +00:00
build:
context: ./services/client
2017-09-04 11:35:53 +00:00
expose:
- "3002"
ports:
- "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
2016-12-14 07:43:10 +00:00
ports:
2017-09-04 11:35:53 +00:00
- "80:8080"
links:
- "auth:${branchName}-auth"
- "salix:${branchName}-salix"
- "client:${branchName}-client"
- "mailer:${branchName}-mailer"
- "production:${branchName}-production"