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.

85 linhas
2.2KB

  1. exec.prebuild:
  2. - focker volume remove --force gateway-cookiecutter
  3. exec.postbuild:
  4. - python3 getmetadata.py
  5. - |
  6. focker jail oneshot -m `pwd`/files:/cookiecutter/input/meta \
  7. `pwd`/nginx-http/files:/cookiecutter/input/nginx-http \
  8. `pwd`/nginx-https/files:/cookiecutter/input/nginx-https \
  9. gateway-cookiecutter:/cookiecutter/output \
  10. -- \
  11. gateway-cookiecutter \
  12. /cookiecutter/scripts/run.sh
  13. volumes:
  14. certbot-data:
  15. chown: 65534:65534
  16. chmod: 0750
  17. zfs:
  18. quota: 1G
  19. certbot-webroot:
  20. chown: 65534:80
  21. chmod: 0750
  22. zfs:
  23. quota: 1G
  24. gateway-cookiecutter:
  25. zfs:
  26. quota: 1G
  27. images:
  28. gateway-cookiecutter: ./gateway-cookiecutter
  29. nginx-http: ./nginx-http
  30. nginx-https: ./nginx-https
  31. certbot: ./certbot
  32. jails:
  33. nginx-http:
  34. image: nginx-http
  35. mounts:
  36. certbot-webroot: /certbot/webroot
  37. gateway-cookiecutter: /cookiecutter
  38. ip4.addr: 127.0.12.1
  39. exec.start: |
  40. cp -v /cookiecutter/nginx-http/nginx.conf \
  41. /usr/local/etc/nginx/nginx.conf && \
  42. /bin/sh /etc/rc
  43. certbot:
  44. image: certbot
  45. depend: nginx-http
  46. mounts:
  47. certbot-data: /usr/local/etc/letsencrypt
  48. certbot-webroot: /certbot/webroot
  49. gateway-cookiecutter: /cookiecutter
  50. exec.start: |
  51. cp -v /cookiecutter/meta/cookiecutter.json \
  52. /certbot/data/metadata.json && \
  53. if [ ! -f /certbot/data/.ready ]; then
  54. rm -vf /usr/local/etc/letsencrypt/.ready && \
  55. /usr/local/bin/python3 /certbot/scripts/certbot.py && \
  56. touch /usr/local/etc/letsencrypt/.ready && \
  57. touch /certbot/data/.ready;
  58. fi && \
  59. /bin/sh /etc/rc
  60. ip4.addr: 127.0.13.1
  61. nginx-https:
  62. image: nginx-https
  63. depend:
  64. - certbot
  65. - nginx-http
  66. mounts:
  67. certbot-data: /usr/local/etc/letsencrypt
  68. gateway-cookiecutter: /cookiecutter
  69. exec.start: |
  70. cp -v /cookiecutter/nginx-https/nginx.conf \
  71. /usr/local/etc/nginx/nginx.conf && \
  72. (( until [ -f /usr/local/etc/letsencrypt/.ready ]; do sleep 1; done && \
  73. /bin/sh /etc/rc) &)
  74. ip4.addr: 127.0.14.1