forked from nicholasjackson/fake-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake-service.ini
30 lines (26 loc) · 845 Bytes
/
fake-service.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[program:prestart]
command=%(ENV_PRESTART_FILE)s
startretries=300
autorestart=unexpected
priority=100
startsecs = 0
exitcodes=0
[program:consul]
command=/usr/local/bin/consul agent -datacenter %(ENV_CONSUL_DATACENTER)s -config-dir /config -client 0.0.0.0 -retry-join %(ENV_CONSUL_SERVER)s -retry-interval=%(ENV_CONSUL_RETRY_INTERVAL)s -bind 0.0.0.0 -grpc-port=8502 -data-dir /etc/consul -hcl "enable_central_service_config = true"
autorestart=true
priority=200
[program:envoy]
command=/usr/local/bin/consul connect envoy -sidecar-for %(ENV_SERVICE_ID)s -envoy-binary /usr/local/bin/envoy -- -l debug
autorestart=true
startretries=300
priority=300
[program:fake-service]
command=/app/fake-service
autorestart=true
startretries=300
priority=400
[program:register-service]
command=/entrypoint.sh
autorestart=unexpected
priority=500
exitcodes=0