build: share cns tag between frontend and mock-server

This commit is contained in:
Sérgio Ramos 2017-06-01 02:38:15 +01:00
parent a9fef4683d
commit c3b0dac605

View File

@ -45,7 +45,7 @@ prometheus:
styleguide: styleguide:
image: quay.io/yldio/joyent-ui-toolkit:$CIRCLE_BRANCH image: quay.io/yldio/joyent-ui-toolkit:$CIRCLE_BRANCH
ports: ports:
- 6060:6060 - 6060
mem_limit: 512m mem_limit: 512m
labels: labels:
- triton.cns.services=styleguide-$CIRCLE_BRANCH - triton.cns.services=styleguide-$CIRCLE_BRANCH
@ -67,7 +67,7 @@ cp-frontend:
- CONSUL_AGENT=1 - CONSUL_AGENT=1
- PORT=3069 - PORT=3069
ports: ports:
- 3069:3069 - 3069
############################################################################# #############################################################################
# BACKEND # BACKEND
@ -76,10 +76,10 @@ gql-mock-server:
image: quay.io/yldio/joyent-cp-gql-mock-server:$CIRCLE_BRANCH image: quay.io/yldio/joyent-cp-gql-mock-server:$CIRCLE_BRANCH
mem_limit: 512m mem_limit: 512m
labels: labels:
- triton.cns.services=gql-mock-server-$CIRCLE_BRANCH - triton.cns.services=gql-mock-server-$CIRCLE_BRANCH,cp-frontend-$CIRCLE_BRANCH
- com.docker.swarm.affinities=["container!=~*gql-mock-server*"] - com.docker.swarm.affinities=["container!=~*gql-mock-server*"]
environment: environment:
- CONSUL_AGENT=1 - CONSUL_AGENT=1
- PORT=3000 - PORT=3000
ports: ports:
- 3000:3000 - 3000