Fix bug unable to start haproxy on port 80

main
Eric Ihli 3 years ago
parent 651c003d4e
commit fe08da6bd7

@ -0,0 +1,12 @@
#!/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

@ -2,7 +2,7 @@
{:min-level :warn} {:min-level :warn}
:com.darklimericks.server.core/server :com.darklimericks.server.core/server
{:port 80 :handler #ig/ref :com.darklimericks.server.handlers/handler} {:port 8000 :handler #ig/ref :com.darklimericks.server.handlers/handler}
:com.darklimericks.server.worker/limerick-gen :com.darklimericks.server.worker/limerick-gen
{:kv #ig/ref :com.darklimericks.kv.core/connection {:kv #ig/ref :com.darklimericks.kv.core/connection

Loading…
Cancel
Save