-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
54 lines (50 loc) · 1.01 KB
/
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
services:
rootns:
image: ubuntu/bind9:latest
container_name: rootns
volumes:
- rootns_etc:/etc/bind
- rootns_rr:/var/lib/bind
networks:
3mindns:
ipv4_address: 192.168.1.1
subns:
image: ubuntu/bind9:latest
container_name: subns
volumes:
- subns_etc:/etc/bind
- subns_rr:/var/lib/bind
networks:
3mindns:
ipv4_address: 192.168.1.2
server1:
image: ubuntu:22.04
container_name: server1
hostname: server1
networks:
3mindns:
ipv4_address: 192.168.1.11
volumes:
- ./main:/srv/main
command: /bin/bash -c "/srv/main"
server2:
image: ubuntu:22.04
container_name: server2
hostname: server2
networks:
3mindns:
ipv4_address: 192.168.1.12
volumes:
- ./main:/srv/main
command: /bin/bash -c "/srv/main"
networks:
3mindns:
ipam:
driver: default
config:
- subnet: 192.168.0.0/20
volumes:
rootns_etc:
rootns_rr:
subns_etc:
subns_rr: