bliepp

docker-compose.yaml

Jan 11th, 2024
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. ---
  2. version: "3.5"
  3.  
  4. networks:
  5. penpot:
  6.  
  7. volumes:
  8. postgres_v15:
  9. assets:
  10.  
  11. services:
  12. frontend:
  13. image: "penpotapp/frontend:latest"
  14. restart: always
  15. ports:
  16. - 9060:80
  17. volumes:
  18. - assets:/opt/data/assets
  19. depends_on:
  20. - backend
  21. - exporter
  22. networks:
  23. - penpot
  24. environment:
  25. ## Relevant flags for frontend:
  26. ## - demo-users
  27. ## - login-with-github
  28. ## - login-with-gitlab
  29. ## - login-with-google
  30. ## - login-with-ldap
  31. ## - login-with-oidc
  32. ## - login-with-password
  33. ## - registration
  34. ## - webhooks
  35. ##
  36. ## You can read more about all available flags on:
  37. ## https://help.penpot.app/technical-guide/configuration/#advanced-configuration
  38.  
  39. - PENPOT_FLAGS=enable-registration enable-login-with-password
  40. - PENPOT_BACKEND_URI=http://backend
  41. - PENPOT_EXPORTER_URI=http://exporter
  42.  
  43. backend:
  44. image: "penpotapp/backend:latest"
  45. restart: always
  46. volumes:
  47. - assets:/opt/data/assets
  48. depends_on:
  49. - postgres
  50. - redis
  51. networks:
  52. - penpot
  53. environment:
  54. ## Relevant flags for backend:
  55. ## - demo-users
  56. ## - email-verification
  57. ## - log-emails
  58. ## - log-invitation-tokens
  59. ## - login-with-github
  60. ## - login-with-gitlab
  61. ## - login-with-google
  62. ## - login-with-ldap
  63. ## - login-with-oidc
  64. ## - login-with-password
  65. ## - registration
  66. ## - secure-session-cookies
  67. ## - smtp
  68. ## - smtp-debug
  69. ## - telemetry
  70. ## - webhooks
  71. ## - prepl-server
  72. ##
  73. ## You can read more about all available flags and other
  74. ## environment variables for the backend here:
  75. ## https://help.penpot.app/technical-guide/configuration/#advanced-configuration
  76.  
  77. - PENPOT_FLAGS=enable-registration enable-login-with-password disable-email-verification enable-smtp enable-prepl-server
  78. - PENPOT_SECRET_KEY=kRkJoBLkUi9vrGfqGAQMr0Sft14sCHogEo6ldC88FWKO9S8zVcjZWQUNlQ_6sZiW6_JifDdB-7OIX6vdRF7Ibw
  79.  
  80. ## The PREPL host. Mainly used for external programatic access to penpot backend
  81. ## (example: admin). By default it listen on `localhost` but if you are going to use
  82. ## the `admin`, you will need to uncomment this and set the host to `0.0.0.0`.
  83. # - PENPOT_PREPL_HOST=0.0.0.0
  84.  
  85. - PENPOT_PUBLIC_URI=http://media.fritz.box:9060
  86. - PENPOT_DATABASE_URI=postgresql://postgres/penpot
  87. - PENPOT_DATABASE_USERNAME=penpot
  88. - PENPOT_DATABASE_PASSWORD=penpot
  89. - PENPOT_REDIS_URI=redis://redis/0
  90. - PENPOT_ASSETS_STORAGE_BACKEND=assets-fs
  91. - PENPOT_STORAGE_ASSETS_FS_DIRECTORY=/opt/data/assets
  92. - PENPOT_TELEMETRY_ENABLED=false
  93.  
  94. ## Example SMTP/Email configuration. By default, emails are sent to the mailcatch
  95. ## service, but for production usage is recommended to setup a real SMTP
  96. ## provider. Emails are used to confirm user registrations & invitations. Look below
  97. ## how mailcatch service is configured.
  98. - PENPOT_SMTP_HOST=mailcatch
  99. - PENPOT_SMTP_PORT=1025
  100. - PENPOT_SMTP_USERNAME=
  101. - PENPOT_SMTP_PASSWORD=
  102. - PENPOT_SMTP_TLS=false
  103. - PENPOT_SMTP_SSL=false
  104.  
  105. exporter:
  106. image: "penpotapp/exporter:latest"
  107. restart: always
  108. networks:
  109. - penpot
  110. environment:
  111. - PENPOT_PUBLIC_URI=http://frontend
  112. - PENPOT_REDIS_URI=redis://redis
  113.  
  114. postgres:
  115. image: "postgres:15"
  116. restart: always
  117. stop_signal: SIGINT
  118. volumes:
  119. - postgres_v15:/var/lib/postgresql/data
  120. networks:
  121. - penpot
  122. environment:
  123. - POSTGRES_INITDB_ARGS=--data-checksums
  124. - POSTGRES_DB=penpot
  125. - POSTGRES_USER=penpot
  126. - POSTGRES_PASSWORD=penpot
  127.  
  128. redis:
  129. image: redis:7
  130. restart: always
  131. networks:
  132. - penpot
  133.  
  134. ## A mailcatch service, used as temporal SMTP server. You can access via HTTP to the
  135. ## port 1080 for read all emails the penpot platform has sent. Should be only used as a
  136. ## temporal solution meanwhile you don't have a real SMTP provider configured.
  137. mailcatch:
  138. image: sj26/mailcatcher:latest
  139. restart: always
  140. expose:
  141. - '1025'
  142. ports:
  143. - "1080:1080"
  144. networks:
  145. - penpot
  146.  
  147.  
Advertisement
Add Comment
Please, Sign In to add comment