docker
This commit is contained in:
parent
e43e3211d0
commit
65455d693a
|
@ -1,12 +1,8 @@
|
|||
version: '2'
|
||||
environment:
|
||||
- branchName=${env.BRANCH_NAME}
|
||||
- NODE_ENV=
|
||||
- dockerHost=
|
||||
version: '3'
|
||||
services:
|
||||
auth:
|
||||
container_name: ${branchName}-auth
|
||||
docker_host: ${dockerHost}
|
||||
container_name: "${BRANCH_NAME}-auth"
|
||||
image: "auth:${TAG}"
|
||||
build:
|
||||
context: ./services/auth
|
||||
expose:
|
||||
|
@ -15,8 +11,8 @@ services:
|
|||
- "3000:3000"
|
||||
|
||||
salix:
|
||||
container_name: ${branchName}-salix
|
||||
docker_host: ${dockerHost}
|
||||
container_name: "${BRANCH_NAME}-salix"
|
||||
image: "salix:${TAG}"
|
||||
build:
|
||||
context: ./services/salix
|
||||
expose:
|
||||
|
@ -25,8 +21,8 @@ services:
|
|||
- "3001:3001"
|
||||
|
||||
client:
|
||||
container_name: ${branchName}-client
|
||||
docker_host: ${dockerHost}
|
||||
container_name: "${BRANCH_NAME}-client"
|
||||
image: "client:${TAG}"
|
||||
build:
|
||||
context: ./services/client
|
||||
expose:
|
||||
|
@ -35,8 +31,8 @@ services:
|
|||
- "3002:3002"
|
||||
|
||||
mailer:
|
||||
container_name: ${branchName}-mailer
|
||||
docker_host: ${dockerHost}
|
||||
container_name: "${BRANCH_NAME}-mailer"
|
||||
image: "mailer:${TAG}"
|
||||
build:
|
||||
context: ./services/mailer
|
||||
expose:
|
||||
|
@ -45,8 +41,8 @@ services:
|
|||
- "3003:3003"
|
||||
|
||||
production:
|
||||
container_name: ${branchName}-production
|
||||
docker_host: ${dockerHost}
|
||||
container_name: "${BRANCH_NAME}-production"
|
||||
image: "production:${TAG}"
|
||||
build:
|
||||
context: ./services/production
|
||||
expose:
|
||||
|
@ -55,15 +51,15 @@ services:
|
|||
- "3004:3004"
|
||||
|
||||
nginx:
|
||||
container_name: ${branchName}-nginx
|
||||
docker_host: ${dockerHost}
|
||||
container_name: "${BRANCH_NAME}-nginx"
|
||||
image: "nginx:${TAG}"
|
||||
build:
|
||||
context: ./services/nginx
|
||||
ports:
|
||||
- "80:8080"
|
||||
links:
|
||||
- "auth:${branchName}-auth"
|
||||
- "salix:${branchName}-salix"
|
||||
- "client:${branchName}-client"
|
||||
- "mailer:${branchName}-mailer"
|
||||
- "production:${branchName}-production"
|
||||
- "auth:"${BRANCH_NAME}-auth"
|
||||
- "salix:"${BRANCH_NAME}-salix"
|
||||
- "client:"${BRANCH_NAME}-client"
|
||||
- "mailer:"${BRANCH_NAME}-mailer"
|
||||
- "production:"${BRANCH_NAME}-production"
|
Loading…
Reference in New Issue