-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (34 loc) · 948 Bytes
/
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
version: '2'
services:
nomad-server-1:
container_name: nomad-server-1
command: nomad agent -config=/code/server.hcl
image: notnoopci/nomad:f84ec1d49
volumes:
- .:/code
nomad-server-2:
container_name: nomad-server-2
command: nomad agent -config=/code/server.hcl
image: notnoopci/nomad:f84ec1d49
volumes:
- .:/code
nomad-server-3:
container_name: nomad-server-3
command: nomad agent -config=/code/server.hcl
image: notnoopci/nomad:f84ec1d49
volumes:
- .:/code
nomad-watcher:
command: ["/bin/sh", "-c", "sleep 10; exec nomad-watcher --event-file=${NOMAD_EVENTS_PATH}"]
image: notnoopci/nomad-watcher:0.1
environment:
- NOMAD_ADDR=http://nomad-server-1:4646
- NOMAD_EVENTS_PATH
volumes:
- .:/code
nomad-client:
command: nomad agent -config=/code/client.hcl
image: notnoopci/nomad:f84ec1d49
privileged: true
volumes:
- .:/code