After spending a couple hours, I couldn't figure out a clean and elegant way to incorporate an auto-renewing certbot script into the Dockerfile without dedicating 90% of the code to it, so I'm just going to be lazy and let the user deal with it themself. It's only a matter of editing nginx.conf
, mounting the certificates as a volume and exposing :443 anyway.
Anyone want to give it a try? Here's the repo: https://github.com/TeamWau/docker-schemebbs-nginx and here's the Hub page: https://hub.docker.com/repository/docker/erkin/schemebbs-nginx
% export SBBS_DATADIR=/opt/bbs
% docker run -p 80:80 --name sbbs -d \
-v "${SBBS_DATADIR}":/opt/schemebbs/data \
-v "$(pwd)"/nginx.conf:/opt/nginx/conf/nginx.conf \
erkin/schemebbs-nginx
% ./create-boards.sh cats travel food
>>227
Glad to see other knitting enthusiasts around.