1
0
mirror of https://github.com/yldio/copilot.git synced 2024-09-21 05:43:52 +03:00

add branch to cns.service name

This commit is contained in:
Sérgio Ramos 2017-03-21 18:25:50 +00:00
parent dd3d4de508
commit e5bfc5cb16

View File

@ -21,7 +21,7 @@ consul:
dns: dns:
- 127.0.0.1 - 127.0.0.1
labels: labels:
- triton.cns.services=consul - triton.cns.services=consul-$CIRCLE_BRANCH
- com.docker.swarm.affinities=["container!=~*"] - com.docker.swarm.affinities=["container!=~*"]
############################################################################# #############################################################################
# CloudAPI GraphQL # CloudAPI GraphQL
@ -30,7 +30,7 @@ cloudapi:
image: quay.io/yldio/joyent-dashboard-cloudapi-graphql:$CIRCLE_BRANCH image: quay.io/yldio/joyent-dashboard-cloudapi-graphql:$CIRCLE_BRANCH
mem_limit: 128m mem_limit: 128m
labels: labels:
- triton.cns.services=cloudapi - triton.cns.services=cloudapi-$CIRCLE_BRANCH
- com.docker.swarm.affinities=["container!=~*cloudapi*"] - com.docker.swarm.affinities=["container!=~*cloudapi*"]
env_file: .env env_file: .env
environment: environment:
@ -45,7 +45,7 @@ frontend:
image: quay.io/yldio/joyent-dashboard-frontend:$CIRCLE_BRANCH image: quay.io/yldio/joyent-dashboard-frontend:$CIRCLE_BRANCH
mem_limit: 512m mem_limit: 512m
labels: labels:
- triton.cns.services=frontend - triton.cns.services=frontend-$CIRCLE_BRANCH
- com.docker.swarm.affinities=["container!=~*frontend*"] - com.docker.swarm.affinities=["container!=~*frontend*"]
env_file: .env env_file: .env
environment: environment:
@ -60,7 +60,7 @@ ui:
image: quay.io/yldio/joyent-dashboard-ui:$CIRCLE_BRANCH image: quay.io/yldio/joyent-dashboard-ui:$CIRCLE_BRANCH
mem_limit: 512m mem_limit: 512m
labels: labels:
- triton.cns.services=ui - triton.cns.services=ui-$CIRCLE_BRANCH
- com.docker.swarm.affinities=["container!=~*ui*"] - com.docker.swarm.affinities=["container!=~*ui*"]
env_file: .env env_file: .env
environment: environment:
@ -80,7 +80,7 @@ nginx:
environment: environment:
- CONSUL_AGENT=1 - CONSUL_AGENT=1
labels: labels:
- triton.cns.services=nginx - triton.cns.services=nginx-$CIRCLE_BRANCH
- com.docker.swarm.affinities=["container!=~*nginx*"] - com.docker.swarm.affinities=["container!=~*nginx*"]
############################################################################# #############################################################################
# Prometheus is an open source performance monitoring tool # Prometheus is an open source performance monitoring tool
@ -94,7 +94,7 @@ prometheus:
ports: ports:
- 9090 - 9090
labels: labels:
- triton.cns.services=prometheus - triton.cns.services=prometheus-$CIRCLE_BRANCH
- com.docker.swarm.affinities=["container!=~*prometheus*"] - com.docker.swarm.affinities=["container!=~*prometheus*"]
############################################################################# #############################################################################
# docs is an open source performance monitoring tool # docs is an open source performance monitoring tool
@ -108,5 +108,5 @@ docs:
ports: ports:
- 80:80 - 80:80
labels: labels:
- triton.cns.services=docs - triton.cns.services=docs-$CIRCLE_BRANCH
- com.docker.swarm.affinities=["container!=~*docs*"] - com.docker.swarm.affinities=["container!=~*docs*"]