2017-11-15 17:25:59 +00:00
|
|
|
version: '2'
|
2016-11-17 09:18:11 +00:00
|
|
|
services:
|
2017-09-04 11:35:53 +00:00
|
|
|
auth:
|
2017-09-14 07:15:53 +00:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=${NODE_ENV}
|
2017-09-05 11:40:29 +00:00
|
|
|
container_name: "${BRANCH_NAME}-auth"
|
|
|
|
image: "auth:${TAG}"
|
2016-12-14 07:43:10 +00:00
|
|
|
build:
|
2017-11-07 18:21:11 +00:00
|
|
|
context: ./services
|
|
|
|
dockerfile: /auth/Dockerfile
|
2017-09-04 11:35:53 +00:00
|
|
|
expose:
|
|
|
|
- "3000"
|
2016-12-14 07:43:10 +00:00
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
2017-09-04 11:35:53 +00:00
|
|
|
|
|
|
|
salix:
|
2017-09-14 07:15:53 +00:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=${NODE_ENV}
|
2017-09-05 11:40:29 +00:00
|
|
|
container_name: "${BRANCH_NAME}-salix"
|
|
|
|
image: "salix:${TAG}"
|
2017-09-14 07:15:53 +00:00
|
|
|
build:
|
2017-11-07 18:21:11 +00:00
|
|
|
context: ./services
|
|
|
|
dockerfile: /salix/Dockerfile
|
2017-09-04 11:35:53 +00:00
|
|
|
expose:
|
|
|
|
- "3001"
|
2017-09-14 07:15:53 +00:00
|
|
|
ports:
|
2017-09-04 11:35:53 +00:00
|
|
|
- "3001:3001"
|
2017-09-14 07:15:53 +00:00
|
|
|
|
2016-12-14 07:43:10 +00:00
|
|
|
client:
|
2017-09-14 07:15:53 +00:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=${NODE_ENV}
|
2017-09-05 11:40:29 +00:00
|
|
|
container_name: "${BRANCH_NAME}-client"
|
|
|
|
image: "client:${TAG}"
|
2016-12-14 07:43:10 +00:00
|
|
|
build:
|
2017-11-07 18:21:11 +00:00
|
|
|
context: ./services
|
|
|
|
dockerfile: /client/Dockerfile
|
2017-09-04 11:35:53 +00:00
|
|
|
expose:
|
|
|
|
- "3002"
|
2017-09-14 07:15:53 +00:00
|
|
|
ports:
|
2017-09-04 11:35:53 +00:00
|
|
|
- "3002:3002"
|
|
|
|
|
|
|
|
mailer:
|
2017-09-14 07:15:53 +00:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=${NODE_ENV}
|
2017-09-05 11:40:29 +00:00
|
|
|
container_name: "${BRANCH_NAME}-mailer"
|
|
|
|
image: "mailer:${TAG}"
|
2017-09-04 11:35:53 +00:00
|
|
|
build:
|
|
|
|
context: ./services/mailer
|
|
|
|
expose:
|
|
|
|
- "3003"
|
2017-09-14 07:15:53 +00:00
|
|
|
ports:
|
2017-09-04 11:35:53 +00:00
|
|
|
- "3003:3003"
|
|
|
|
|
|
|
|
production:
|
2017-09-14 07:15:53 +00:00
|
|
|
environment:
|
|
|
|
- NODE_ENV=${NODE_ENV}
|
2017-09-05 11:40:29 +00:00
|
|
|
container_name: "${BRANCH_NAME}-production"
|
|
|
|
image: "production:${TAG}"
|
2017-09-04 11:35:53 +00:00
|
|
|
build:
|
2017-11-07 18:21:11 +00:00
|
|
|
context: ./services
|
|
|
|
dockerfile: /production/Dockerfile
|
2017-09-04 11:35:53 +00:00
|
|
|
expose:
|
|
|
|
- "3004"
|
2017-09-14 07:15:53 +00:00
|
|
|
ports:
|
2017-09-04 11:35:53 +00:00
|
|
|
- "3004:3004"
|
|
|
|
|
2017-11-08 09:54:59 +00:00
|
|
|
route:
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=${NODE_ENV}
|
|
|
|
container_name: "${BRANCH_NAME}-route"
|
|
|
|
image: "route:${TAG}"
|
|
|
|
build:
|
|
|
|
context: ./services
|
|
|
|
dockerfile: /route/Dockerfile
|
|
|
|
expose:
|
|
|
|
- "3005"
|
|
|
|
ports:
|
|
|
|
- "3005:3005"
|
2017-11-28 07:18:00 +00:00
|
|
|
print:
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=${NODE_ENV}
|
|
|
|
container_name: "${BRANCH_NAME}-print"
|
|
|
|
image: "print:${TAG}"
|
|
|
|
build:
|
|
|
|
context: ./services
|
|
|
|
dockerfile: /print/Dockerfile
|
|
|
|
expose:
|
|
|
|
- "3006"
|
|
|
|
ports:
|
|
|
|
- "3006:3006"
|
2017-09-04 11:35:53 +00:00
|
|
|
nginx:
|
2017-09-05 11:40:29 +00:00
|
|
|
container_name: "${BRANCH_NAME}-nginx"
|
|
|
|
image: "nginx:${TAG}"
|
2017-09-14 07:15:53 +00:00
|
|
|
privileged: true
|
|
|
|
build:
|
2017-09-04 11:35:53 +00:00
|
|
|
context: ./services/nginx
|
2017-09-14 07:15:53 +00:00
|
|
|
expose:
|
|
|
|
- "80"
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
2017-11-15 17:25:59 +00:00
|
|
|
mem_limit: 200m
|
2017-09-04 11:35:53 +00:00
|
|
|
links:
|
2017-11-09 08:39:32 +00:00
|
|
|
- "auth:${BRANCH_NAME}-auth"
|
|
|
|
- "salix:${BRANCH_NAME}-salix"
|
|
|
|
- "client:${BRANCH_NAME}-client"
|
|
|
|
- "mailer:${BRANCH_NAME}-mailer"
|
|
|
|
- "production:${BRANCH_NAME}-production"
|
|
|
|
- "route:${BRANCH_NAME}-route"
|
2017-11-28 07:18:00 +00:00
|
|
|
- "print:${BRANCH_NAME}-print"
|