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!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

focker-compose.yml 1.5KB

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