-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yaml
85 lines (76 loc) · 2.13 KB
/
docker-compose.yaml
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
---
version: '2.1'
services:
gornir:
image: gornir-base
build:
context: .
dockerfile: Dockerfile
extra_hosts:
- "dev1.group_1:10.21.33.101"
- "dev2.group_1:10.21.33.102"
- "dev3.group_2:10.21.33.103"
- "dev4.group_2:10.21.33.104"
- "dev5.no_group:10.21.33.105"
- "dev6.no_group:10.21.33.106"
- "httpbin:10.21.33.201"
environment:
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org
volumes:
- .:/go/src/github.com/nornir-automation/gornir
ports:
- "6060:6060"
networks:
net1:
ipv4_address: 10.21.33.2
dev1.group_1:
hostname: dev1.group_1
image: dbarroso/stupid_ssh_container
networks:
net1:
ipv4_address: 10.21.33.101
dev2.group_1:
hostname: dev2.group_1
image: dbarroso/stupid_ssh_container
networks:
net1:
ipv4_address: 10.21.33.102
dev3.group_2:
hostname: dev3.group_2
image: dbarroso/stupid_ssh_container
networks:
net1:
ipv4_address: 10.21.33.103
dev4.group_2:
hostname: dev4.group_2
image: dbarroso/stupid_ssh_container
networks:
net1:
ipv4_address: 10.21.33.104
dev5.no_group:
hostname: dev5.no_group
image: dbarroso/stupid_ssh_container
networks:
net1:
ipv4_address: 10.21.33.105
dev6.no_group:
hostname: dev6.no_group
image: dbarroso/stupid_ssh_container
networks:
net1:
ipv4_address: 10.21.33.106
volumes:
- ./examples/6_custom_ssh_config/id_rsa.pub:/root/.ssh/authorized_keys:ro
httpbin:
hostname: httpbin
image: bungoume/httpbin-container
networks:
net1:
ipv4_address: 10.21.33.201
networks:
net1:
driver: bridge
ipam:
config:
- subnet: 10.21.33.0/24