-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (36 loc) · 1.08 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
# Main composition file for ZTP service using DHCP and TFTP servers:
# Author: Arthur Cadore M. Barcella
# Github: arthurcadore
# Capacitação Redes - PV Intelbras
version: '3.8'
services:
# DHCP server service:
dhcpserver:
container_name: dhcpserver
hostname: dhcpserver
restart: always
network_mode: "host"
# Capabilities to add to the container to allow DHCP server to run:
cap_add:
- NET_ADMIN
volumes:
# - "./serverDHCP/dhcpd.leases:/var/lib/dhcp/dhcpd.leases"
- "./serverDHCP/dhcpd.conf:/etc/dhcp/dhcpd.conf"
- "./serverDHCP/dhcpd6.conf:/etc/dhcp/dhcpd6.conf"
# Map container build context to DHCPserver container:
build:
context: .
dockerfile: ./serverDHCP/Dockerfile
# TFTP server service:
tftpserver:
container_name: tftpserver
hostname: tftpserver
restart: always
network_mode: "host"
# Volume mount to share TFTP files:
volumes:
- "./share:/tftpshare"
# Map container build context to TFTPserver container:
build:
context: .
dockerfile: ./serverTFTP/Dockerfile