docker-compose.yml 9.9 KB

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