docker-compose.yml 9.3 KB

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