docker-compose-build.yml 10 KB

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