1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-15 07:40:07 +02:00
copilot/docker/compose-api/etc/containerpilot.json
2017-09-15 22:36:31 +01:00

46 lines
1.0 KiB
JSON

{
"consul": "localhost:8500",
"jobs": [
{
"name": "setup-config",
"exec": "/bin/prestart.sh"
},
{
"name": "compose-api",
"port": 4242,
"exec": [
"python",
"-u",
"./bin/docker-compose"
],
"health": {
"exec": "true",
"interval": 10,
"ttl": 25
},
"when": {
"source": "setup-config",
"once": "exitSuccess"
},
"restarts": "unlimited"
},
{
"name": "consul-agent",
"exec": ["/usr/local/bin/consul", "agent",
"-data-dir=/data",
"-config-dir=/config",
"-log-level=err",
"-rejoin",
"-retry-join", "{{ .CONSUL | default "consul" }}",
"-retry-max", "10",
"-retry-interval", "10s"],
"health": {
"exec": "curl -so /dev/null http://localhost:8500",
"interval": 10,
"ttl": 25
},
"restarts": "unlimited"
}
]
}