docker-compose.yml 9.6 KB

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