mirror of
https://github.com/yldio/copilot.git
synced 2024-11-15 07:40:07 +02:00
25 lines
613 B
YAML
25 lines
613 B
YAML
|
version: '2.1'
|
||
|
|
||
|
services:
|
||
|
|
||
|
# Service definition for Consul cluster with a minimum of 3 nodes.
|
||
|
# Nodes will use Triton CNS for the service (passed in via the CONSUL
|
||
|
# env var) to find each other and bootstrap the cluster.
|
||
|
consul:
|
||
|
image: autopilotpattern/consul:${TAG:-latest}
|
||
|
labels:
|
||
|
- triton.cns.services=consul
|
||
|
restart: always
|
||
|
mem_limit: 128m
|
||
|
ports:
|
||
|
- 8500
|
||
|
env_file:
|
||
|
- _env
|
||
|
network_mode: bridge
|
||
|
command: >
|
||
|
/usr/local/bin/containerpilot
|
||
|
/bin/consul agent -server
|
||
|
-bootstrap-expect 3
|
||
|
-config-dir=/etc/consul
|
||
|
-ui-dir /ui
|