docker-compose.yml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. version: '2'
  2. services:
  3. wekandb:
  4. image: mongo:3.2.21
  5. container_name: wekan-db
  6. restart: always
  7. command: mongod --smallfiles --oplogSize 128
  8. networks:
  9. - wekan-tier
  10. expose:
  11. - 27017
  12. volumes:
  13. - wekan-db:/data/db
  14. - wekan-db-dump:/dump
  15. wekan:
  16. image: quay.io/wekan/wekan
  17. container_name: wekan-app
  18. restart: always
  19. networks:
  20. - wekan-tier
  21. ports:
  22. # Docker outsideport:insideport
  23. - 80:8080
  24. environment:
  25. - MONGO_URL=mongodb://wekandb:27017/wekan
  26. - ROOT_URL=http://localhost
  27. # Wekan Export Board works when WITH_API='true'.
  28. # If you disable Wekan API with 'false', Export Board does not work.
  29. - WITH_API=true
  30. # Optional: Integration with Matomo https://matomo.org that is installed to your server
  31. # The address of the server where Matomo is hosted.
  32. # example: - MATOMO_ADDRESS=https://example.com/matomo
  33. - MATOMO_ADDRESS=''
  34. # The value of the site ID given in Matomo server for Wekan
  35. # example: - MATOMO_SITE_ID=12345
  36. - MATOMO_SITE_ID=''
  37. # The option do not track which enables users to not be tracked by matomo
  38. # example: - MATOMO_DO_NOT_TRACK=false
  39. - MATOMO_DO_NOT_TRACK=true
  40. # The option that allows matomo to retrieve the username:
  41. # example: MATOMO_WITH_USERNAME=true
  42. - MATOMO_WITH_USERNAME=false
  43. # Enable browser policy and allow one trusted URL that can have iframe that has Wekan embedded inside.
  44. # Setting this to false is not recommended, it also disables all other browser policy protections
  45. # and allows all iframing etc. See wekan/server/policy.js
  46. - BROWSER_POLICY_ENABLED=true
  47. # When browser policy is enabled, HTML code at this Trusted URL can have iframe that embeds Wekan inside.
  48. - TRUSTED_URL=''
  49. # What to send to Outgoing Webhook, or leave out. Example, that includes all that are default: cardId,listId,oldListId,boardId,comment,user,card,commentId .
  50. # example: WEBHOOKS_ATTRIBUTES=cardId,listId,oldListId,boardId,comment,user,card,commentId
  51. - WEBHOOKS_ATTRIBUTES=''
  52. # Enable the OAuth2 connection
  53. # example: OAUTH2_ENABLED=true
  54. - OAUTH2_ENABLED=false
  55. # OAuth2 docs: https://github.com/wekan/wekan/wiki/OAuth2
  56. # OAuth2 Client ID, for example from Rocket.Chat. Example: abcde12345
  57. # example: OAUTH2_CLIENT_ID=abcde12345
  58. - OAUTH2_CLIENT_ID=''
  59. # OAuth2 Secret, for example from Rocket.Chat: Example: 54321abcde
  60. # example: OAUTH2_SECRET=54321abcde
  61. - OAUTH2_SECRET=''
  62. # OAuth2 Server URL, for example Rocket.Chat. Example: https://chat.example.com
  63. # example: OAUTH2_SERVER_URL=https://chat.example.com
  64. - OAUTH2_SERVER_URL=''
  65. # OAuth2 Authorization Endpoint. Example: /oauth/authorize
  66. # example: OAUTH2_AUTH_ENDPOINT=/oauth/authorize
  67. - OAUTH2_AUTH_ENDPOINT=''
  68. # OAuth2 Userinfo Endpoint. Example: /oauth/userinfo
  69. # example: OAUTH2_USERINFO_ENDPOINT=/oauth/userinfo
  70. - OAUTH2_USERINFO_ENDPOINT=''
  71. # OAuth2 Token Endpoint. Example: /oauth/token
  72. # example: OAUTH2_TOKEN_ENDPOINT=/oauth/token
  73. - OAUTH2_TOKEN_ENDPOINT=''
  74. # LDAP_ENABLE : Enable or not the connection by the LDAP
  75. # example : LDAP_ENABLE=true
  76. - LDAP_ENABLE=false
  77. # LDAP_PORT : The port of the LDAP server
  78. # example : LDAP_PORT=389
  79. - LDAP_PORT=389
  80. # LDAP_HOST : The host server for the LDAP server
  81. # example : LDAP_HOST=localhost
  82. - LDAP_HOST=''
  83. # LDAP_BASEDN : The base DN for the LDAP Tree
  84. # example : LDAP_BASEDN=ou=user,dc=example,dc=org
  85. - LDAP_BASEDN=''
  86. # LDAP_LOGIN_FALLBACK : Fallback on the default authentication method
  87. # example : LDAP_LOGIN_FALLBACK=true
  88. - LDAP_LOGIN_FALLBACK=false
  89. # LDAP_RECONNECT : Reconnect to the server if the connection is lost
  90. # example : LDAP_RECONNECT=false
  91. - LDAP_RECONNECT=true
  92. # LDAP_TIMEOUT : Overall timeout, in milliseconds
  93. # example : LDAP_TIMEOUT=12345
  94. - LDAP_TIMEOUT=10000
  95. # LDAP_IDLE_TIMEOUT : Specifies the timeout for idle LDAP connections in milliseconds
  96. # example : LDAP_IDLE_TIMEOUT=12345
  97. - LDAP_IDLE_TIMEOUT=10000
  98. # LDAP_CONNECT_TIMEOUT : Connection timeout, in milliseconds
  99. # example : LDAP_CONNECT_TIMEOUT=12345
  100. - LDAP_CONNECT_TIMEOUT=10000
  101. # LDAP_AUTHENTIFICATION : If the LDAP needs a user account to search
  102. # example : LDAP_AUTHENTIFICATION=true
  103. - LDAP_AUTHENTIFICATION=false
  104. # LDAP_AUTHENTIFICATION_USERDN : The search user DN
  105. # example : LDAP_AUTHENTIFICATION_USERDN=cn=admin,dc=example,dc=org
  106. - LDAP_AUTHENTIFICATION_USERDN=''
  107. # LDAP_AUTHENTIFICATION_PASSWORD : The password for the search user
  108. # example : AUTHENTIFICATION_PASSWORD=admin
  109. - LDAP_AUTHENTIFICATION_PASSWORD=''
  110. # LDAP_LOG_ENABLED : Enable logs for the module
  111. # example : LDAP_LOG_ENABLED=true
  112. - LDAP_LOG_ENABLED=false
  113. # LDAP_BACKGROUND_SYNC : If the sync of the users should be done in the background
  114. # example : LDAP_BACKGROUND_SYNC=true
  115. - LDAP_BACKGROUND_SYNC=false
  116. # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
  117. # example : LDAP_BACKGROUND_SYNC_INTERVAL=12345
  118. - LDAP_BACKGROUND_SYNC_INTERVAL=100
  119. # LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED :
  120. # example : LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=true
  121. - LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false
  122. # LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS :
  123. # example : LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=true
  124. - LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=false
  125. # LDAP_ENCRYPTION : If using LDAPS
  126. # example : LDAP_ENCRYPTION=true
  127. - LDAP_ENCRYPTION=false
  128. # LDAP_CA_CERT : The certification for the LDAPS server
  129. # example : LDAP_CA_CERT=-----BEGIN CERTIFICATE-----MIIE+zCCA+OgAwIBAgIkAhwR/6TVLmdRY6hHxvUFWc0+Enmu/Hu6cj+G2FIdAgIC...-----END CERTIFICATE-----
  130. - LDAP_CA_CERT=''
  131. # LDAP_REJECT_UNAUTHORIZED : Reject Unauthorized Certificate
  132. # example : LDAP_REJECT_UNAUTHORIZED=true
  133. - LDAP_REJECT_UNAUTHORIZED=false
  134. # LDAP_USER_SEARCH_FILTER : Optional extra LDAP filters. Don't forget the outmost enclosing parentheses if needed
  135. # example : LDAP_USER_SEARCH_FILTER=
  136. - LDAP_USER_SEARCH_FILTER=''
  137. # LDAP_USER_SEARCH_SCOPE : Base (search only in the provided DN), one (search only in the provided DN and one level deep), or subtree (search the whole subtree)
  138. # example : LDAP_USER_SEARCH_SCOPE=one
  139. - LDAP_USER_SEARCH_SCOPE=''
  140. # LDAP_USER_SEARCH_FIELD : Which field is used to find the user
  141. # example : LDAP_USER_SEARCH_FIELD=uid
  142. - LDAP_USER_SEARCH_FIELD=''
  143. # LDAP_SEARCH_PAGE_SIZE : Used for pagination (0=unlimited)
  144. # example : LDAP_SEARCH_PAGE_SIZE=12345
  145. - LDAP_SEARCH_PAGE_SIZE=0
  146. # LDAP_SEARCH_SIZE_LIMIT : The limit number of entries (0=unlimited)
  147. # example : LDAP_SEARCH_SIZE_LIMIT=12345
  148. - LDAP_SEARCH_SIZE_LIMIT=0
  149. # LDAP_GROUP_FILTER_ENABLE : Enable group filtering
  150. # example : LDAP_GROUP_FILTER_ENABLE=true
  151. - LDAP_GROUP_FILTER_ENABLE=false
  152. # LDAP_GROUP_FILTER_OBJECTCLASS : The object class for filtering
  153. # example : LDAP_GROUP_FILTER_OBJECTCLASS=group
  154. - LDAP_GROUP_FILTER_OBJECTCLASS=''
  155. # LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE :
  156. # example :
  157. - LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE=''
  158. # LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE :
  159. # example :
  160. - LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE=''
  161. # LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT :
  162. # example :
  163. - LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT=''
  164. # LDAP_GROUP_FILTER_GROUP_NAME :
  165. # example :
  166. - LDAP_GROUP_FILTER_GROUP_NAME=''
  167. # LDAP_UNIQUE_IDENTIFIER_FIELD : This field is sometimes class GUID (Globally Unique Identifier)
  168. # example : LDAP_UNIQUE_IDENTIFIER_FIELD=guid
  169. - LDAP_UNIQUE_IDENTIFIER_FIELD=''
  170. # LDAP_UTF8_NAMES_SLUGIFY : Convert the username to utf8
  171. # example : LDAP_UTF8_NAMES_SLUGIFY=false
  172. - LDAP_UTF8_NAMES_SLUGIFY=true
  173. # LDAP_USERNAME_FIELD : Which field contains the ldap username
  174. # example : LDAP_USERNAME_FIELD=username
  175. - LDAP_USERNAME_FIELD=''
  176. # LDAP_MERGE_EXISTING_USERS :
  177. # example : LDAP_MERGE_EXISTING_USERS=true
  178. - LDAP_MERGE_EXISTING_USERS=false
  179. # LDAP_SYNC_USER_DATA :
  180. # example : LDAP_SYNC_USER_DATA=true
  181. - LDAP_SYNC_USER_DATA=false
  182. # LDAP_SYNC_USER_DATA_FIELDMAP :
  183. # example : LDAP_SYNC_USER_DATA_FIELDMAP={\"cn\":\"name\", \"mail\":\"email\"}
  184. - LDAP_SYNC_USER_DATA_FIELDMAP=''
  185. # LDAP_SYNC_GROUP_ROLES :
  186. # example :
  187. - LDAP_SYNC_GROUP_ROLES=''
  188. # LDAP_DEFAULT_DOMAIN : The default domain of the ldap it is used to create email if the field is not map correctly with the LDAP_SYNC_USER_DATA_FIELDMAP
  189. # example :
  190. - LDAP_DEFAULT_DOMAIN=''
  191. depends_on:
  192. - wekandb
  193. volumes:
  194. wekan-db:
  195. driver: local
  196. wekan-db-dump:
  197. driver: local
  198. networks:
  199. wekan-tier:
  200. driver: bridge