|
@@ -1,9 +1,8 @@ |
|
|
images:
|
|
|
images:
|
|
|
gitea: .
|
|
|
|
|
|
gitea-logo: ../gitea-logo
|
|
|
|
|
|
gitea-custom: ../gitea-custom
|
|
|
|
|
|
gitea-disable: ../gitea-disable
|
|
|
|
|
|
certbot-latest: ../certbot
|
|
|
|
|
|
|
|
|
gitea-latest: ./gitea-latest
|
|
|
|
|
|
gitea-logo: ./gitea-logo
|
|
|
|
|
|
gitea-custom: ./gitea-custom
|
|
|
|
|
|
gitea-disable: ./gitea-disable
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
volumes:
|
|
|
gitea-data:
|
|
|
gitea-data:
|
|
@@ -11,8 +10,6 @@ volumes: |
|
|
chown: 211:211
|
|
|
chown: 211:211
|
|
|
zfs:
|
|
|
zfs:
|
|
|
quota: 5G
|
|
|
quota: 5G
|
|
|
certbot-webroot: {}
|
|
|
|
|
|
certbot-config-gitea: {}
|
|
|
|
|
|
|
|
|
|
|
|
jails:
|
|
|
jails:
|
|
|
gitea:
|
|
|
gitea:
|
|
@@ -39,16 +36,3 @@ jails: |
|
|
su git -c 'gitea admin -c $GITEA_CONF create-user --username admin1 --password "AdminAdmin1+" --email "invaliduser@nonexistentdomain.com" --admin'; \
|
|
|
su git -c 'gitea admin -c $GITEA_CONF create-user --username admin1 --password "AdminAdmin1+" --email "invaliduser@nonexistentdomain.com" --admin'; \
|
|
|
fi && \
|
|
|
fi && \
|
|
|
/bin/sh /etc/rc
|
|
|
/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
|
|
|
|