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!
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

focker-compose.yml 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. - gitea.xyz.com
  22. image: gitea-disable
  23. mounts:
  24. gitea-data: /var/db/gitea
  25. ip4.addr: 127.0.8.1
  26. exec.start: |
  27. export IP4_ADDR=127.0.8.1 && \
  28. export SCHEME=http && \
  29. export DOMAIN_NAME=localhost:3001 && \
  30. export GITEA_CONF=/usr/local/etc/gitea/conf/app.ini && \
  31. chown git:git /var/db/gitea && \
  32. sed -i -e "s/127.0.0.1/${IP4_ADDR}/g" $GITEA_CONF && \
  33. sed -i -e "s/localhost/${DOMAIN_NAME}/g" $GITEA_CONF && \
  34. crudini --set --inplace $GITEA_CONF server ROOT_URL ${SCHEME}://${DOMAIN_NAME} && \
  35. if [ ! -f /var/db/gitea/gitea.db ]; then \
  36. su git -c 'gitea migrate -c $GITEA_CONF' && \
  37. su git -c 'gitea admin -c $GITEA_CONF create-user --username admin1 --password "AdminAdmin1+" --email "invaliduser@nonexistentdomain.com" --admin'; \
  38. fi && \
  39. /bin/sh /etc/rc
  40. certbot-gitea:
  41. image: certbot-latest
  42. mounts:
  43. certbot-webroot: /certbot/webroot
  44. certbot-config-gitea: /usr/local/etc/letsencrypt
  45. ip4.addr: 127.0.9.1
  46. exec.start: |
  47. if [ ! -f /usr/local/etc/letsencrypt/cli.ini ]; then
  48. echo 'webroot-path=/certbot/webroot' >>/usr/local/etc/letsencrypt/cli.ini && \
  49. echo 'authenticator=webroot' >>/usr/local/etc/letsencrypt/cli.ini;
  50. fi && \
  51. /bin/sh /etc/rc