images: gitea-latest: . certbot-latest: ../certbot volumes: gitea-data: {} certbot-webroot: {} certbot-config-gitea: {} jails: gitea: meta: domains: - 1101.ch - www.1101.ch image: gitea-latest mounts: gitea-data: /var/db/gitea ip4.addr: 127.0.8.1 exec.start: | chown git:git /var/db/gitea && \ sed -i -e 's/127.0.0.1/127.0.8.1/g' /usr/local/etc/gitea/conf/app.ini && \ sed -i -e 's/ChangeMeBeforeRunning/J#NNOWn377ijsmfjmw54594702239ydhofh494j/g' /usr/local/etc/gitea/conf/app.ini && \ if [ ! -f /var/db/gitea/gitea.db ]; then \ su git -c 'gitea migrate -c /usr/local/etc/gitea/conf/app.ini' && \ su git -c 'gitea admin -c /usr/local/etc/gitea/conf/app.ini create-user --username admin1 --password "AdminAdmin1+" --email "invaliduser@nonexistentdomain.com"'; \ fi && \ /bin/sh /etc/rc certbot-gitea: image: certbot-latest mounts: certbot-webroot: /certbot/webroot certbot-config-gitea: /usr/local/etc/letsencrypt ip4.addr: 127.0.9.1 exec.start: | if [ ! -f /usr/local/etc/letsencrypt/cli.ini ]; then echo 'webroot-path=/certbot/webroot' >>/usr/local/etc/letsencrypt/cli.ini && \ echo 'authenticator=webroot' >>/usr/local/etc/letsencrypt/cli.ini; fi && \ /bin/sh /etc/rc