You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
552 B
Bash

#!/bin/sh
HOST_IP=`ip -4 addr show scope global dev docker0 | grep inet | awk '{print \$2}' | cut -d / -f 1`
FULLCHAIN_PEM="${FULLCHAIN_PEM:-/etc/letsencrypt/live/darklimericks.com/fullchain.pem}"
docker run \
--add-host darklimericks:$HOST_IP \
-p 80:80 -p 443:443 -p 8404:8404 \
--sysctl net.ipv4.ip_unprivileged_port_start=0 \
--mount type=bind,source=$FULLCHAIN_PEM,target=/etc/ssl/cert.pem \
--mount type=bind,source=$(pwd)/haproxy.cfg,target=/usr/local/etc/haproxy/haproxy.cfg \
3 years ago
--name haproxy \
-d --rm -it haproxy