mkdir /docker/
- https://store.docker.com/community/images/mrwyss/mjpg-streamer
- https://github.com/MrWyss/mjpg-streamer-docker
docker run -d \
--restart=always \
-p 8081:80 \
--device=/dev/video0 \
--name=mjpg-streamer \
mrwyss/mjpg-streamer
- https://store.docker.com/community/images/mrwyss/octoprint
- https://github.com/MrWyss/octoprint-docker
mkdir /docker/octoprint
mkdir /docker/octoprint/data
docker run -d \
--restart=always \
-p 5000:5000 \
--device=/dev/ttyUSB0 \
-v /docker/octoprint/data/:/data \
--name=doctoprint \
mtwiley/doctoprint
mkdir /docker/haproxy/
mkdir /docker/haproxy/config
mkdir /docker/haproxy/letsencrypt
mkdir /docker/haproxy/certs.d
cp $ThisRepoLocation/haproxy.cfg /docker/haproxy/config/
docker run -d \
--restart=always \
--name haproxy-certbot \
--cap-add=NET_ADMIN
-p 80:80 \
-p 443:443 \
-v /docker/haproxy/config:/config \
-v /docker/haproxy/letsencrypt:/etc/letsencrypt \
-v /docker/haproxy/certs.d:/usr/local/etc/haproxy/certs.d \
nmarus/haproxy-certbot
docker exec haproxy-certbot certbot-certonly \
--domain wiley-apex.ddns.net \
--email [email protected]
docker exec haproxy-certbot haproxy-refresh
docker exec haproxy-certbot certbot-renew
tar -zcvf $(date +%Y-%m-%d)-octoprint_data.tar.gz -C /docker/octoprint/data .
tar -xvf YYYY-MM-DD-octoprint_data.tar.gz -C /docker/octoprint/data