docker-compose-build.yml 9.5 KB

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