IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

focker-compose.yml 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. images:
  2. gitea: .
  3. gitea-logo: ../gitea-logo
  4. gitea-custom: ../gitea-custom
  5. gitea-disable: ../gitea-disable
  6. certbot-latest: ../certbot
  7. volumes:
  8. gitea-data:
  9. chmod: 0750
  10. chown: 211:211
  11. zfs:
  12. quota: 5G
  13. certbot-webroot: {}
  14. certbot-config-gitea: {}
  15. jails:
  16. gitea:
  17. meta:
  18. domains:
  19. - xyz.com
  20. - www.xyz.com
  21. image: gitea-disable
  22. mounts:
  23. gitea-data: /var/db/gitea
  24. ip4.addr: 127.0.8.1
  25. exec.start: |
  26. export IP4_ADDR=127.0.8.1 && \
  27. export SCHEME=http && \
  28. export DOMAIN_NAME=localhost:3001 && \
  29. export GITEA_CONF=/usr/local/etc/gitea/conf/app.ini && \
  30. chown git:git /var/db/gitea && \
  31. sed -i -e "s/127.0.0.1/${IP4_ADDR}/g" $GITEA_CONF && \
  32. sed -i -e "s/localhost/${DOMAIN_NAME}/g" $GITEA_CONF && \
  33. crudini --set --inplace $GITEA_CONF server ROOT_URL ${SCHEME}://${DOMAIN_NAME} && \
  34. if [ ! -f /var/db/gitea/gitea.db ]; then \
  35. su git -c 'gitea migrate -c $GITEA_CONF' && \
  36. su git -c 'gitea admin -c $GITEA_CONF create-user --username admin1 --password "AdminAdmin1+" --email "invaliduser@nonexistentdomain.com" --admin'; \
  37. fi && \
  38. /bin/sh /etc/rc
  39. certbot-gitea:
  40. image: certbot-latest
  41. mounts:
  42. certbot-webroot: /certbot/webroot
  43. certbot-config-gitea: /usr/local/etc/letsencrypt
  44. ip4.addr: 127.0.9.1
  45. exec.start: |
  46. if [ ! -f /usr/local/etc/letsencrypt/cli.ini ]; then
  47. echo 'webroot-path=/certbot/webroot' >>/usr/local/etc/letsencrypt/cli.ini && \
  48. echo 'authenticator=webroot' >>/usr/local/etc/letsencrypt/cli.ini;
  49. fi && \
  50. /bin/sh /etc/rc