1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-15 15:50:06 +02:00
copilot/docker/compose-api/etc/containerpilot.json

46 lines
1.0 KiB
JSON
Raw Normal View History

{
"consul": "localhost:8500",
"jobs": [
{
"name": "setup-config",
"exec": "/bin/prestart.sh"
},
{
"name": "docker-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"
}
]
}