-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (55 loc) · 1.61 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
# Main composition file for Ansbile Application Container.
# Author: Arthur Cadore M. Barcella
# Github: arthurcadore
version: '3.8'
services:
# Ansible App container
ansibleserver:
container_name: AnsibleServer
volumes:
- "./shared/:/ansible/shared/"
- "./deploy/inventory/:/ansible/inventory/"
- "./deploy/playbooks/:/ansible/playbooks/"
- "./config/hosts.cfg:/etc/hosts"
- "./deploy/libs/:/ansible/"
- "./env/namespaces.py:/usr/local/lib/python3.10/dist-packages/pycw7-0.0.11-py3.10.egg/pycw7/utils/xml/namespaces.py"
- "./env/namespaces.py:/ansible/pycw7/utils/xml/namespaces.py"
env_file:
- ./env/.env_ansible
network_mode: "host"
cap_add:
- NET_ADMIN
build:
context: .
dockerfile: ./docker/Dockerfile-Ansible
# DHCP server container:
dhcpserver:
container_name: dhcpserver
hostname: dhcpserver
restart: always
network_mode: "host"
cap_add:
- NET_ADMIN
volumes:
- "./logs/:/var/lib/dhcp/"
- "./config/dhcpd.conf:/etc/dhcp/dhcpd.conf"
- "./config/dhcpd6.conf:/etc/dhcp/dhcpd6.conf"
# Map container build context to DHCPserver container:
build:
context: .
dockerfile: ./docker/Dockerfile-dhcpd
# TFTP server container:
tftpserver:
container_name: tftpserver
hostname: tftpserver
restart: always
network_mode: "host"
cap_add:
- NET_ADMIN
ports:
- "514:514/udp"
volumes:
- "./shared:/tftpshare"
build:
context: .
dockerfile: ./docker/Dockerfile-tftp