jgsoftwares/httpdfileserver
debain - httpd file server on port 8000
145
the port on /usr/local/apache/conf/httpd.conf is edit to 8000
config your time zone
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
-> show your timezone with
date
as fileserver the lo interface is disabled with
apt update
apt install net-tools
ifconfig lo down
the directory for your files is ----> /srv/www/htdocs
run command
path for files is /srv/www/htdocs
openwrt
-e NETWORK_IF=eth0 docker run -d --rm --name httpfileserver -p 0.0.0.0:8000:8000 --net=host --runtime io.containerd.runc.v2 -e TZ=Europe/Berlin --add-host=demolanserver.ddns.net:217.160.255.254 --platform=linux/amd64 -v /srv/www/htdocs:/usr/local/apache2/htdocs/ --cap-add=NET_ADMIN -e NTP_SERVER="2.rhel.pool.ntp.org" --tty --dns 194.62.181.53 --dns 194.62.180.53 --dns 204.16.255.53 --dns 204.16.254.53 -e TZ=Europe/Berlin jgsoftwares/httpdfileserver:openwrtext4
docker run -d --rm --interactive --name httpfileserver -p 0.0.0.0:8000:8000 --runtime io.containerd.runc.v2 -e TZ=Europe/Berlin --add-host=demogitjava.ddns.net:217.160.255.254 --platform=linux/amd64 -v /srv/www/htdocs:/usr/local/apache2/htdocs/ --cap-add=NET_ADMIN --cpu-quota 2000 --cpu-period 2000 --cpu-shares 1024 --cpuset-cpus="1" --network 172.17.0.0 --ip 172.17.0.100 -e NTP_SERVER="2.rhel.pool.ntp.org" -e TZ=Europe/Berlin -e NETWORK_IF=eth0 jgsoftwares/httpdfileserver:latest
--ip 172.20.0.2
docker pull jgsoftwares/httpdfileserver