-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
120 lines (120 loc) · 3.16 KB
/
docker-compose.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
services:
nginx:
image: nginx:latest
networks:
default:
aliases:
- inventory.example.com
volumes:
- source: ./integration/nginx/etc/nginx/conf.d
target: /etc/nginx/conf.d
type: bind
- source: ./integration/pki
target: /etc/ssl
type: bind
- source: ./integration/nginx/www
target: /www
type: bind
stop_signal: SIGKILL
openssh:
build:
context: integration/openssh
networks:
default:
aliases:
- ssh.example.com
command: -o HostKeyAlgorithms=ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,ssh-rsa
stop_signal: SIGKILL
openssh-rsa:
image: herd-openssh
networks:
default:
aliases:
- ssh-rsa.example.com
command: -o HostKeyAlgorithms=ssh-rsa
openssh-ecdsa:
image: herd-openssh
networks:
default:
aliases:
- ssh-ecdsa.example.com
command: -o HostKeyAlgorithms=ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
stop_signal: SIGKILL
openssh-ed25519:
image: herd-openssh
networks:
default:
aliases:
- ssh-ed25519.example.com
command: -o HostKeyAlgorithms=ssh-ed25519
stop_signal: SIGKILL
consul-server-dc1:
image: hashicorp/consul:latest
networks:
default:
aliases:
- consul-server-dc1.example.com
- consul.service.consul
environment:
- CONSUL_BIND_INTERFACE=eth0
- 'CONSUL_LOCAL_CONFIG={"datacenter": "dc1", "retry_join_wan": ["consul-server-dc2.example.com"]}'
stop_signal: SIGKILL
consul-server-dc2:
image: hashicorp/consul:latest
networks:
default:
aliases:
- consul-server-dc2.example.com
environment:
- 'CONSUL_BIND_INTERFACE=eth0'
- 'CONSUL_LOCAL_CONFIG={"datacenter": "dc2", "retry_join_wan": ["consul-server-dc1.example.com"]}'
stop_signal: SIGKILL
consul-agent-dc1:
image: hashicorp/consul:latest
command: agent
environment:
- CONSUL_BIND_INTERFACE=eth0
- 'CONSUL_LOCAL_CONFIG={"datacenter": "dc1", "retry_join": ["consul-server-dc1.example.com"]}'
deploy:
replicas: 5
depends_on:
- consul-server-dc1
stop_signal: SIGKILL
consul-agent-dc2:
image: hashicorp/consul:latest
command: agent
environment:
- CONSUL_BIND_INTERFACE=eth0
- 'CONSUL_LOCAL_CONFIG={"datacenter": "dc2", "retry_join": ["consul-server-dc2.example.com"]}'
deploy:
replicas: 5
depends_on:
- consul-server-dc2
stop_signal: SIGKILL
herd:
build:
context: "."
dockerfile: Dockerfile
command: make -C integration test TEST_OPTS='--verbose --chain-lint'
environment:
- TEST_OPTS=--verbose
depends_on:
- nginx
- openssh
- openssh-rsa
- openssh-ecdsa
- openssh-ed25519
- consul-server-dc1
- consul-server-dc2
- consul-agent-dc1
- consul-agent-dc2
volumes:
- source: ./integration/
target: /herd/integration/
type: bind
debug:
image: herd-herd
command: sleep 3600
depends_on:
- herd
stop_signal: SIGKILL