-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
45 lines (41 loc) · 1.11 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: "2.3" # cannot upgrade to 3.+ because they remove service_healthy condition
# TODO investigate docker swarm
services:
consul:
image: consul:0.7.0
container_name: consul
ports:
- "8400:8400"
- "8500:8500"
- "8600:53/udp"
environment:
- 'CONSUL_LOCAL_CONFIG={"log_level": "INFO"}'
healthcheck:
test: ["CMD-SHELL", "curl -f http://127.0.0.1:8500/v1/health/state/any | grep passing || exit 1"]
interval: 10s
timeout: 5s
retries: 5
git2consul:
image: cimpress/git2consul
depends_on:
consul:
condition: service_healthy
container_name: git2consul
volumes:
- ./config/git2consul:/config
command: --endpoint consul --config-file /config/git2consul.json
vault:
depends_on:
consul:
condition: service_healthy
image: vault
hostname: vault
container_name: vault
environment:
VAULT_ADDR: 127.0.0.1:8200
ports:
- "8200:8200"
volumes:
- ./config/vault:/config
- ./config/vault/policies:/policies
command: server -config=/config/with-consul.hcl