mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 15:20:06 +02:00
Move consul to autopilotpattern
This commit is contained in:
parent
b1b088fd77
commit
787a6815b4
@ -1,24 +1,28 @@
|
|||||||
#############################################################################
|
#############################################################################
|
||||||
# CONSUL
|
# 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:
|
consul:
|
||||||
image: progrium/consul:latest
|
image: autopilotpattern/consul:latest
|
||||||
labels:
|
command: >
|
||||||
- triton.cns.services=consul
|
/usr/local/bin/containerpilot
|
||||||
- com.docker.swarm.affinities=["container!=~*"]
|
/bin/consul agent -server
|
||||||
|
-bootstrap-expect 3
|
||||||
|
-config-dir=/etc/consul
|
||||||
|
-ui-dir /ui
|
||||||
restart: always
|
restart: always
|
||||||
mem_limit: 128m
|
mem_limit: 128m
|
||||||
expose:
|
|
||||||
- 53
|
|
||||||
- 8300
|
|
||||||
- 8301
|
|
||||||
- 8302
|
|
||||||
- 8400
|
|
||||||
- 8500
|
|
||||||
env_file: .env
|
env_file: .env
|
||||||
ports:
|
ports:
|
||||||
- 8500
|
- 8500
|
||||||
command: -server -bootstrap -ui-dir /ui
|
dns:
|
||||||
|
- 127.0.0.1
|
||||||
|
labels:
|
||||||
|
- triton.cns.services=consul
|
||||||
|
- com.docker.swarm.affinities=["container!=~*"]
|
||||||
#############################################################################
|
#############################################################################
|
||||||
# CloudAPI GraphQL
|
# CloudAPI GraphQL
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user