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!
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

focker-compose.yml 1.2KB

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