-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
61 lines (61 loc) · 1.25 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
version: '2'
services:
salt:
hostname: salt
privileged: true
cap_add:
- SYS_ADMIN
environment:
container: docker
command: /usr/sbin/init
build:
context: saltstack/master/
ports:
- "8000:8000"
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- ./saltstack/salt:/srv/salt
- ./saltstack/pillar:/srv/pillar
networks:
- salt
minion1:
hostname: minion1
privileged: true
cap_add:
- SYS_ADMIN
environment:
container: docker
command: /usr/sbin/init
build:
context: saltstack/minion1/
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
networks:
- salt
minion2:
hostname: minion2
privileged: true
cap_add:
- SYS_ADMIN
environment:
container: docker
command: /usr/sbin/init
build:
context: saltstack/minion2/
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
networks:
- salt
vault:
image: vault:0.9.6
ports:
- "8200:8200"
cap_add:
- IPC_LOCK
environment:
VAULT_DEV_ROOT_TOKEN_ID: mysecret
VAULT_LOCAL_CONFIG: '{"backend": {"file": {"path": "/vault/file"}}, "default_lease_ttl": "168h", "max_lease_ttl": "720h"}'
networks:
- salt
networks:
salt: