mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 14:10:04 +02:00
fix: downgrade compose version
This commit is contained in:
parent
fdbfeb2e37
commit
96abc2a8bc
@ -1,94 +1,91 @@
|
|||||||
version: "2"
|
#############################################################################
|
||||||
|
# CONSUL
|
||||||
|
#
|
||||||
|
# Consul is the service catalog that helps discovery between the components
|
||||||
|
# Change "-bootstrap" to "-bootstrap-expect 3", then scale to 3 or more to
|
||||||
|
# turn this into an HA Consul raft.
|
||||||
|
#############################################################################
|
||||||
|
consul:
|
||||||
|
image: autopilotpattern/consul:latest
|
||||||
|
command: >
|
||||||
|
/usr/local/bin/containerpilot
|
||||||
|
/bin/consul agent -server
|
||||||
|
-bootstrap-expect 3
|
||||||
|
-config-dir=/etc/consul
|
||||||
|
-ui-dir /ui
|
||||||
|
restart: always
|
||||||
|
mem_limit: 128m
|
||||||
|
ports:
|
||||||
|
- 8500
|
||||||
|
dns:
|
||||||
|
- 127.0.0.1
|
||||||
|
labels:
|
||||||
|
- triton.cns.services=consul-$CIRCLE_BRANCH
|
||||||
|
- com.docker.swarm.affinities=["container!=~*"]
|
||||||
|
|
||||||
services:
|
#############################################################################
|
||||||
#############################################################################
|
# PROMETHEUS
|
||||||
# CONSUL
|
#
|
||||||
#
|
# Prometheus is an open source performance monitoring tool
|
||||||
# Consul is the service catalog that helps discovery between the components
|
# it is included here for demo purposes and is not required
|
||||||
# Change "-bootstrap" to "-bootstrap-expect 3", then scale to 3 or more to
|
#############################################################################
|
||||||
# turn this into an HA Consul raft.
|
prometheus:
|
||||||
#############################################################################
|
image: autopilotpattern/prometheus:latest
|
||||||
consul:
|
restart: always
|
||||||
image: autopilotpattern/consul:latest
|
mem_limit: 1g
|
||||||
command: >
|
ports:
|
||||||
/usr/local/bin/containerpilot
|
- 9090
|
||||||
/bin/consul agent -server
|
labels:
|
||||||
-bootstrap-expect 3
|
- triton.cns.services=prometheus-$CIRCLE_BRANCH
|
||||||
-config-dir=/etc/consul
|
- com.docker.swarm.affinities=["container!=~*prometheus*"]
|
||||||
-ui-dir /ui
|
|
||||||
restart: always
|
|
||||||
mem_limit: 128m
|
|
||||||
ports:
|
|
||||||
- 8500
|
|
||||||
dns:
|
|
||||||
- 127.0.0.1
|
|
||||||
labels:
|
|
||||||
- triton.cns.services=consul-$CIRCLE_BRANCH
|
|
||||||
- com.docker.swarm.affinities=["container!=~*"]
|
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# PROMETHEUS
|
# STYLEGUIDE
|
||||||
#
|
#############################################################################
|
||||||
# Prometheus is an open source performance monitoring tool
|
styleguide:
|
||||||
# it is included here for demo purposes and is not required
|
build:
|
||||||
#############################################################################
|
context: .
|
||||||
prometheus:
|
dockerfile: ./packages/ui-toolkit/Dockerfile
|
||||||
image: autopilotpattern/prometheus:latest
|
ports:
|
||||||
restart: always
|
- 6060:6060
|
||||||
mem_limit: 1g
|
mem_limit: 512m
|
||||||
ports:
|
labels:
|
||||||
- 9090
|
- triton.cns.services=ui-$CIRCLE_BRANCH
|
||||||
labels:
|
- com.docker.swarm.affinities=["container!=~*styleguide*"]
|
||||||
- triton.cns.services=prometheus-$CIRCLE_BRANCH
|
environment:
|
||||||
- com.docker.swarm.affinities=["container!=~*prometheus*"]
|
- CONSUL_AGENT=1
|
||||||
|
- PORT=6060
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# STYLEGUIDE
|
# FRONTEND
|
||||||
#############################################################################
|
#############################################################################
|
||||||
styleguide:
|
cp-frontend:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./packages/ui-toolkit/Dockerfile
|
dockerfile: ./packages/cp-frontend/Dockerfile
|
||||||
ports:
|
mem_limit: 512m
|
||||||
- 6060:6060
|
labels:
|
||||||
mem_limit: 512m
|
- triton.cns.services=frontend-$CIRCLE_BRANCH
|
||||||
labels:
|
- com.docker.swarm.affinities=["container!=~*cp-frontend*"]
|
||||||
- triton.cns.services=ui-$CIRCLE_BRANCH
|
environment:
|
||||||
- com.docker.swarm.affinities=["container!=~*styleguide*"]
|
- CONSUL_AGENT=1
|
||||||
environment:
|
- PORT=3069
|
||||||
- CONSUL_AGENT=1
|
ports:
|
||||||
- PORT=6060
|
- 3069:3069
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# FRONTEND
|
# BACKEND
|
||||||
#############################################################################
|
#############################################################################
|
||||||
cp-frontend:
|
gql-mock-server:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./packages/cp-frontend/Dockerfile
|
dockerfile: ./packages/cp-gql-mock-server/Dockerfile
|
||||||
mem_limit: 512m
|
mem_limit: 512m
|
||||||
labels:
|
labels:
|
||||||
- triton.cns.services=frontend-$CIRCLE_BRANCH
|
- triton.cns.services=frontend-$CIRCLE_BRANCH
|
||||||
- com.docker.swarm.affinities=["container!=~*cp-frontend*"]
|
- com.docker.swarm.affinities=["container!=~*gql-mock-server*"]
|
||||||
environment:
|
environment:
|
||||||
- CONSUL_AGENT=1
|
- CONSUL_AGENT=1
|
||||||
- PORT=3069
|
- PORT=3000
|
||||||
ports:
|
ports:
|
||||||
- 3069:3069
|
- 3000:3000
|
||||||
|
|
||||||
#############################################################################
|
|
||||||
# BACKEND
|
|
||||||
#############################################################################
|
|
||||||
gql-mock-server:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: ./packages/cp-gql-mock-server/Dockerfile
|
|
||||||
mem_limit: 512m
|
|
||||||
labels:
|
|
||||||
- triton.cns.services=frontend-$CIRCLE_BRANCH
|
|
||||||
- com.docker.swarm.affinities=["container!=~*gql-mock-server*"]
|
|
||||||
environment:
|
|
||||||
- CONSUL_AGENT=1
|
|
||||||
- PORT=3000
|
|
||||||
ports:
|
|
||||||
- 3000:3000
|
|
||||||
|
Loading…
Reference in New Issue
Block a user