docker-compose.yml 9.4 KB

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