-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
61 lines (57 loc) · 1.46 KB
/
docker-compose.yaml
File metadata and controls
61 lines (57 loc) · 1.46 KB
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
version: "3.9"
services:
nginx:
restart: always
build: .nginx/.
image: "nginx"
stdin_open: true
tty: true
command: sh -c "nginx -g 'daemon off;'"
volumes:
- ./www:/var/www/html/
- ./etc/nginx:/etc/nginx/
network_mode: "host"
dhcpd:
restart: always
build: .dhcpd/.
image: "dhcpd"
stdin_open: true
tty: true
command: sh -c "dhcpd -d"
volumes:
- ./etc/dhcp:/etc/dhcp/
- ./etc/dhcp/dhcpd.leases:/var/lib/dhcp/dhcpd.leases
- ./etc/dhcp/isc-dhcp-server:/etc/default/isc-dhcp-server
network_mode: "host"
# xinetd:
# restart: always
# build: .xinetd/.
# image: "xinetd"
# stdin_open: true
# tty: true
# command: sh -c "xinetd -d"
# volumes:
# - ./etc/xinetd.d:/etc/xinetd.d
# - ./tftpboot:/tftpboot
# network_mode: "host"
tftpd:
restart: always
build: .tftpd/.
image: "tftpd"
stdin_open: true
tty: true
#command: sh -c "bash"
command: sh -c "/usr/sbin/in.tftpd --foreground --listen --user tftp --address :69 --secure /var/lib/tftpboot"
volumes:
- ./tftpboot:/var/lib/tftpboot
network_mode: "host"
uwsgi:
restart: always
build: .uwsgi/.
image: "uwsgi"
stdin_open: true
tty: true
command: sh -c "cd /app ; uwsgi --socket 127.0.0.1:9999 --wsgi-file site.py --master --processes 4 --threads 2 --uid www-data --gid www-data -w wsgi:app"
volumes:
- ./app:/app/
network_mode: "host"