-
Notifications
You must be signed in to change notification settings - Fork 66
/
docker-compose.yml
50 lines (50 loc) · 925 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
39
40
41
42
43
44
45
46
47
48
49
50
version: "2"
services:
base:
build: ./base/
image: ansible_base
master:
links:
- base
build: ./master/
image: ansible_master
container_name: master01
hostname: master01
command: ["/usr/sbin/sshd","-D"]
volumes:
- ansible_vol:/var/ans
host:
links:
- base
- master
build: ./host/
image: ansible_host
container_name: host01
hostname: host01
command: ["/var/run.sh"]
volumes:
- ansible_vol:/var/ans
host02:
links:
- base
- master
- host
image: ansible_host
container_name: host02
hostname: host02
command: ["/var/run.sh"]
volumes:
- ansible_vol:/var/ans
host03:
links:
- base
- master
- host
image: ansible_host
container_name: host03
hostname: host03
command: ["/var/run.sh"]
volumes:
- ansible_vol:/var/ans
volumes:
ansible_vol: