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.
13 lines
515 B
Bash
13 lines
515 B
Bash
3 years ago
|
#!/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 \
|
||
|
--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 \
|
||
|
--rm -it haproxy
|