docker-compose.yml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  1. version: '2'
  2. # Note: Do not add single quotes '' to variables. Having spaces still works without quotes where required.
  3. #---------------------------------------------------------------------------------------------------------
  4. # ==== CREATING USERS AND LOGGING IN TO WEKAN ====
  5. # https://github.com/wekan/wekan/wiki/Adding-users
  6. #---------------------------------------------------------------------------------------------------------
  7. # ==== FORGOT PASSWORD ====
  8. # https://github.com/wekan/wekan/wiki/Forgot-Password
  9. #---------------------------------------------------------------------------------------------------------
  10. # ==== Upgrading Wekan to new version =====
  11. # NOTE: MongoDB has changed from 3.x to 4.x, in that case you need backup/restore with --noIndexRestore
  12. # see https://github.com/wekan/wekan/wiki/Backup
  13. # 1) Stop Wekan:
  14. # docker-compose stop
  15. # 2) Remove old Wekan app (wekan-app only, not that wekan-db container that has all your data)
  16. # docker rm wekan-app
  17. # 3) Get newest docker-compose.yml from https://github.com/wekan/wekan to have correct image,
  18. # for example: "image: quay.io/wekan/wekan" or version tag "image: quay.io/wekan/wekan:v4.52"
  19. # 4) Start Wekan:
  20. # docker-compose up -d
  21. #----------------------------------------------------------------------------------
  22. # ==== OPTIONAL: DEDICATED DOCKER USER ====
  23. # 1) Optionally create a dedicated user for Wekan, for example:
  24. # sudo useradd -d /home/wekan -m -s /bin/bash wekan
  25. # 2) Add this user to the docker group, then logout+login or reboot:
  26. # sudo usermod -aG docker wekan
  27. # 3) Then login as user wekan.
  28. # 4) Create this file /home/wekan/docker-compose.yml with your modifications.
  29. #----------------------------------------------------------------------------------
  30. # ==== RUN DOCKER AS SERVICE ====
  31. # 1a) Running Docker as service, on Systemd like Debian 9, Ubuntu 16.04, CentOS 7:
  32. # sudo systemctl enable docker
  33. # sudo systemctl start docker
  34. # 1b) Running Docker as service, on init.d like Debian 8, Ubuntu 14.04, CentOS 6:
  35. # sudo update-rc.d docker defaults
  36. # sudo service docker start
  37. # ----------------------------------------------------------------------------------
  38. # ==== USAGE OF THIS docker-compose.yml ====
  39. # 1) For seeing does Wekan work, try this and check with your web browser:
  40. # docker-compose up
  41. # 2) Stop Wekan and start Wekan in background:
  42. # docker-compose stop
  43. # docker-compose up -d
  44. # 3) See running Docker containers:
  45. # docker ps
  46. # 4) Stop Docker containers:
  47. # docker-compose stop
  48. # ----------------------------------------------------------------------------------
  49. # ===== INSIDE DOCKER CONTAINERS, AND BACKUP/RESTORE ====
  50. # https://github.com/wekan/wekan/wiki/Backup
  51. # If really necessary, repair MongoDB: https://github.com/wekan/wekan-mongodb/issues/6#issuecomment-424004116
  52. # 1) Going inside containers:
  53. # a) Wekan app, does not contain data
  54. # docker exec -it wekan-app bash
  55. # b) MongoDB, contains all data
  56. # docker exec -it wekan-db bash
  57. # 2) Copying database to outside of container:
  58. # docker exec -it wekan-db bash
  59. # cd /data
  60. # mongodump
  61. # exit
  62. # docker cp wekan-db:/data/dump .
  63. # 3) Restoring database
  64. # # 1) Stop wekan
  65. # docker stop wekan-app
  66. # # 2) Go inside database container
  67. # docker exec -it wekan-db bash
  68. # # 3) and data directory
  69. # cd /data
  70. # # 4) Remove previos dump
  71. # rm -rf dump
  72. # # 5) Exit db container
  73. # exit
  74. # # 6) Copy dump to inside docker container
  75. # docker cp dump wekan-db:/data/
  76. # # 7) Go inside database container
  77. # docker exec -it wekan-db bash
  78. # # 8) and data directory
  79. # cd /data
  80. # # 9) Restore
  81. # mongorestore --drop
  82. # # 10) Exit db container
  83. # exit
  84. # # 11) Start wekan
  85. # docker start wekan-app
  86. #-------------------------------------------------------------------------
  87. services:
  88. wekandb:
  89. #-------------------------------------------------------------------------------------
  90. # ==== MONGODB AND METEOR VERSION ====
  91. # a) mongodb latest, like 3.2 - 4.4 or newer https://hub.docker.com/_/mongo?tab=description
  92. # 2020-12-03:
  93. # - Mongo image copied from Docker Hub mongo:4.4.2-bionic to Quay
  94. # to avoid Docker Hub rate limits.
  95. image: quay.io/wekan/mongo:4.4.2-bionic
  96. #-------------------------------------------------------------------------------------
  97. container_name: wekan-db
  98. restart: always
  99. # command: mongod --oplogSize 128
  100. # Syslog: mongod --syslog --oplogSize 128 --quiet
  101. # Disable MongoDB logs:
  102. command: mongod --logpath /dev/null --oplogSize 128 --quiet
  103. networks:
  104. - wekan-tier
  105. expose:
  106. - 27017
  107. volumes:
  108. - wekan-db:/data/db
  109. - wekan-db-dump:/dump
  110. wekan:
  111. #-------------------------------------------------------------------------------------
  112. # ==== MONGODB AND METEOR VERSION ====
  113. # a) Quay automatic builds do work, https://quay.io/wekan7wekan
  114. image: quay.io/wekan/wekan
  115. # b) Using specific version tag:
  116. # image: quay.io/wekan/wekan:v4.52
  117. # c) Docker Hub builds are broken with error ENOMEM https://hub.docker.com/r/wekanteam/wekan
  118. # image: wekanteam/wekan
  119. #-------------------------------------------------------------------------------------
  120. container_name: wekan-app
  121. restart: always
  122. networks:
  123. - wekan-tier
  124. #-------------------------------------------------------------------------------------
  125. # ==== BUILD wekan-app DOCKER CONTAINER FROM SOURCE, if you uncomment these ====
  126. # ==== and use commands: docker-compose up -d --build
  127. #build:
  128. # context: .
  129. # dockerfile: Dockerfile
  130. # args:
  131. # - NODE_VERSION=${NODE_VERSION}
  132. # - METEOR_RELEASE=${METEOR_RELEASE}
  133. # - NPM_VERSION=${NPM_VERSION}
  134. # - ARCHITECTURE=${ARCHITECTURE}
  135. # - SRC_PATH=${SRC_PATH}
  136. # - METEOR_EDGE=${METEOR_EDGE}
  137. # - USE_EDGE=${USE_EDGE}
  138. #-------------------------------------------------------------------------------------
  139. ports:
  140. # Docker outsideport:insideport. Do not add anything extra here.
  141. # For example, if you want to have wekan on port 3001,
  142. # use 3001:8080 . Do not add any extra address etc here, that way it does not work.
  143. # remove port mapping if you use nginx reverse proxy, port 8080 is already exposed to wekan-tier network
  144. - 80:8080
  145. environment:
  146. - MONGO_URL=mongodb://wekandb:27017/wekan
  147. #---------------------------------------------------------------
  148. # ==== ROOT_URL SETTING ====
  149. # Change ROOT_URL to your real Wekan URL, for example:
  150. # If you have Caddy/Nginx/Apache providing SSL
  151. # - https://example.com
  152. # - https://boards.example.com
  153. # This can be problematic with avatars https://github.com/wekan/wekan/issues/1776
  154. # - https://example.com/wekan
  155. # If without https, can be only wekan node, no need for Caddy/Nginx/Apache if you don't need them
  156. # - http://example.com
  157. # - http://boards.example.com
  158. # - http://192.168.1.100 <=== using at local LAN
  159. - ROOT_URL=http://localhost # <=== using only at same laptop/desktop where Wekan is installed
  160. #---------------------------------------------------------------
  161. # ==== EMAIL SETTINGS ====
  162. # Email settings are required in both MAIL_URL and Admin Panel,
  163. # see https://github.com/wekan/wekan/wiki/Troubleshooting-Mail
  164. # For SSL in email, change smtp:// to smtps://
  165. # NOTE: Special characters need to be url-encoded in MAIL_URL.
  166. # You can encode those characters for example at: https://www.urlencoder.org
  167. #- MAIL_URL=smtp://user:pass@mailserver.example.com:25/
  168. - MAIL_URL=smtp://<mail_url>:25/?ignoreTLS=true&tls={rejectUnauthorized:false}
  169. - MAIL_FROM=Wekan Notifications <noreply.wekan@mydomain.com>
  170. #---------------------------------------------------------------
  171. # ==== OPTIONAL: MONGO OPLOG SETTINGS =====
  172. # https://github.com/wekan/wekan-mongodb/issues/2#issuecomment-378343587
  173. # We've fixed our CPU usage problem today with an environment
  174. # change around Wekan. I wasn't aware during implementation
  175. # that if you're using more than 1 instance of Wekan
  176. # (or any MeteorJS based tool) you're supposed to set
  177. # MONGO_OPLOG_URL as an environment variable.
  178. # Without setting it, Meteor will perform a poll-and-diff
  179. # update of it's dataset. With it, Meteor will update from
  180. # the OPLOG. See here
  181. # https://blog.meteor.com/tuning-meteor-mongo-livedata-for-scalability-13fe9deb8908
  182. # After setting
  183. # MONGO_OPLOG_URL=mongodb://<username>:<password>@<mongoDbURL>/local?authSource=admin&replicaSet=rsWekan
  184. # the CPU usage for all Wekan instances dropped to an average
  185. # of less than 10% with only occasional spikes to high usage
  186. # (I guess when someone is doing a lot of work)
  187. # - MONGO_OPLOG_URL=mongodb://<username>:<password>@<mongoDbURL>/local?authSource=admin&replicaSet=rsWekan
  188. #---------------------------------------------------------------
  189. # ==== OPTIONAL: KADIRA PERFORMANCE MONITORING FOR METEOR ====
  190. # https://github.com/edemaine/kadira-compose
  191. # https://github.com/meteor/meteor-apm-agent
  192. # https://blog.meteor.com/kadira-apm-is-now-open-source-490469ffc85f
  193. #- APM_OPTIONS_ENDPOINT=http://<kadira-ip>:11011
  194. #- APM_APP_ID=
  195. #- APM_APP_SECRET=
  196. #---------------------------------------------------------------
  197. # ==== OPTIONAL: LOGS AND STATS ====
  198. # https://github.com/wekan/wekan/wiki/Logs
  199. #
  200. # Daily export of Wekan changes as JSON to Logstash and ElasticSearch / Kibana (ELK)
  201. # https://github.com/wekan/wekan-logstash
  202. #
  203. # Statistics Python script for Wekan Dashboard
  204. # https://github.com/wekan/wekan-stats
  205. #
  206. # Console, file, and zulip logger on database changes https://github.com/wekan/wekan/pull/1010
  207. # with fix to replace console.log by winston logger https://github.com/wekan/wekan/pull/1033
  208. # but there could be bug https://github.com/wekan/wekan/issues/1094
  209. #
  210. # There is Feature Request: Logging date and time of all activity with summary reports,
  211. # and requesting reason for changing card to other column https://github.com/wekan/wekan/issues/1598
  212. #---------------------------------------------------------------
  213. # ==== WEKAN API AND EXPORT BOARD ====
  214. # Wekan Export Board works when WITH_API=true.
  215. # https://github.com/wekan/wekan/wiki/REST-API
  216. # https://github.com/wekan/wekan-gogs
  217. # If you disable Wekan API with false, Export Board does not work.
  218. - WITH_API=true
  219. #---------------------------------------------------------------
  220. # ==== PASSWORD BRUTE FORCE PROTECTION ====
  221. #https://atmospherejs.com/lucasantoniassi/accounts-lockout
  222. #Defaults below. Uncomment to change. wekan/server/accounts-lockout.js
  223. #- ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURES_BEFORE=3
  224. #- ACCOUNTS_LOCKOUT_KNOWN_USERS_PERIOD=60
  225. #- ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURE_WINDOW=15
  226. #- ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURES_BERORE=3
  227. #- ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
  228. #- ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
  229. #---------------------------------------------------------------
  230. # ==== STORE ATTACHMENT ON SERVER FILESYSTEM INSTEAD OF MONGODB ====
  231. # https://github.com/wekan/wekan/pull/2603
  232. #- ATTACHMENTS_STORE_PATH = <pathname> # pathname can be relative or fullpath
  233. #---------------------------------------------------------------
  234. # ==== RICH TEXT EDITOR IN CARD COMMENTS ====
  235. # https://github.com/wekan/wekan/pull/2560
  236. - RICHER_CARD_COMMENT_EDITOR=false
  237. #---------------------------------------------------------------
  238. # ==== CARD OPENED, SEND WEBHOOK MESSAGE ====
  239. # https://github.com/wekan/wekan/issues/2518
  240. - CARD_OPENED_WEBHOOK_ENABLED=false
  241. #---------------------------------------------------------------
  242. # ==== Allow to shrink attached/pasted image ====
  243. # https://github.com/wekan/wekan/pull/2544
  244. #-MAX_IMAGE_PIXEL=1024
  245. #-IMAGE_COMPRESS_RATIO=80
  246. #---------------------------------------------------------------
  247. # ==== NOTIFICATION TRAY AFTER READ DAYS BEFORE REMOVE =====
  248. # Number of days after a notification is read before we remove it.
  249. # Default: 2
  250. #- NOTIFICATION_TRAY_AFTER_READ_DAYS_BEFORE_REMOVE=2
  251. #---------------------------------------------------------------
  252. # ==== BIGEVENTS DUE ETC NOTIFICATIONS =====
  253. # https://github.com/wekan/wekan/pull/2541
  254. # Introduced a system env var BIGEVENTS_PATTERN default as "NONE",
  255. # so any activityType matches the pattern, system will send out
  256. # notifications to all board members no matter they are watching
  257. # or tracking the board or not. Owner of the wekan server can
  258. # disable the feature by setting this variable to "NONE" or
  259. # change the pattern to any valid regex. i.e. '|' delimited
  260. # activityType names.
  261. # a) Example
  262. #- BIGEVENTS_PATTERN=due
  263. # b) All
  264. #- BIGEVENTS_PATTERN=received|start|due|end
  265. # c) Disabled
  266. - BIGEVENTS_PATTERN=NONE
  267. #---------------------------------------------------------------
  268. # ==== EMAIL DUE DATE NOTIFICATION =====
  269. # https://github.com/wekan/wekan/pull/2536
  270. # System timelines will be showing any user modification for
  271. # dueat startat endat receivedat, also notification to
  272. # the watchers and if any card is due, about due or past due.
  273. #
  274. # Notify due days, default is None, 2 days before and on the event day
  275. #- NOTIFY_DUE_DAYS_BEFORE_AND_AFTER=2,0
  276. #
  277. # Notify due at hour of day. Default every morning at 8am. Can be 0-23.
  278. # If env variable has parsing error, use default. Notification sent to watchers.
  279. #- NOTIFY_DUE_AT_HOUR_OF_DAY=8
  280. #-----------------------------------------------------------------
  281. # ==== EMAIL NOTIFICATION TIMEOUT, ms =====
  282. # Defaut: 30000 ms = 30s
  283. #- EMAIL_NOTIFICATION_TIMEOUT=30000
  284. #-----------------------------------------------------------------
  285. # ==== CORS =====
  286. # CORS: Set Access-Control-Allow-Origin header.
  287. #- CORS=*
  288. # CORS_ALLOW_HEADERS: Set Access-Control-Allow-Headers header. "Authorization,Content-Type" is required for cross-origin use of the API.
  289. #- CORS_ALLOW_HEADERS=Authorization,Content-Type
  290. # CORS_EXPOSE_HEADERS: Set Access-Control-Expose-Headers header. This is not needed for typical CORS situations
  291. #- CORS_EXPOSE_HEADERS=*
  292. #-----------------------------------------------------------------
  293. # ==== MATOMO INTEGRATION ====
  294. # Optional: Integration with Matomo https://matomo.org that is installed to your server
  295. # The address of the server where Matomo is hosted.
  296. #- MATOMO_ADDRESS=https://example.com/matomo
  297. # The value of the site ID given in Matomo server for Wekan
  298. #- MATOMO_SITE_ID=1
  299. # The option do not track which enables users to not be tracked by matomo
  300. #- MATOMO_DO_NOT_TRACK=true
  301. # The option that allows matomo to retrieve the username:
  302. #- MATOMO_WITH_USERNAME=true
  303. #-----------------------------------------------------------------
  304. # ==== BROWSER POLICY AND TRUSTED IFRAME URL ====
  305. # Enable browser policy and allow one trusted URL that can have iframe that has Wekan embedded inside.
  306. # Setting this to false is not recommended, it also disables all other browser policy protections
  307. # and allows all iframing etc. See wekan/server/policy.js
  308. - BROWSER_POLICY_ENABLED=true
  309. # When browser policy is enabled, HTML code at this Trusted URL can have iframe that embeds Wekan inside.
  310. #- TRUSTED_URL=https://intra.example.com
  311. #-----------------------------------------------------------------
  312. # ==== OUTGOING WEBHOOKS ====
  313. # What to send to Outgoing Webhook, or leave out. Example, that includes all that are default: cardId,listId,oldListId,boardId,comment,user,card,commentId .
  314. #- WEBHOOKS_ATTRIBUTES=cardId,listId,oldListId,boardId,comment,user,card,commentId
  315. #-----------------------------------------------------------------
  316. # ==== Debug OIDC OAuth2 etc ====
  317. #- DEBUG=true
  318. #-----------------------------------------------------------------
  319. # ==== OAUTH2 ORACLE on premise identity manager OIM ====
  320. #- ORACLE_OIM_ENABLED=true
  321. #-----------------------------------------------------------------
  322. # ==== OAUTH2 AZURE ====
  323. # https://github.com/wekan/wekan/wiki/Azure
  324. # 1) Register the application with Azure. Make sure you capture
  325. # the application ID as well as generate a secret key.
  326. # 2) Configure the environment variables. This differs slightly
  327. # by installation type, but make sure you have the following:
  328. #- OAUTH2_ENABLED=true
  329. # Optional OAuth2 CA Cert, see https://github.com/wekan/wekan/issues/3299
  330. #- OAUTH2_CA_CERT=ABCD1234
  331. # Use OAuth2 ADFS additional changes. Also needs OAUTH2_ENABLED=true setting.
  332. #- OAUTH2_ADFS_ENABLED=false
  333. # OAuth2 login style: popup or redirect.
  334. #- OAUTH2_LOGIN_STYLE=redirect
  335. # Application GUID captured during app registration:
  336. #- OAUTH2_CLIENT_ID=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
  337. # Secret key generated during app registration:
  338. #- OAUTH2_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  339. #- OAUTH2_SERVER_URL=https://login.microsoftonline.com/
  340. #- OAUTH2_AUTH_ENDPOINT=/oauth2/v2.0/authorize
  341. #- OAUTH2_USERINFO_ENDPOINT=https://graph.microsoft.com/oidc/userinfo
  342. #- OAUTH2_TOKEN_ENDPOINT=/oauth2/v2.0/token
  343. # The claim name you want to map to the unique ID field:
  344. #- OAUTH2_ID_MAP=email
  345. # The claim name you want to map to the username field:
  346. #- OAUTH2_USERNAME_MAP=email
  347. # The claim name you want to map to the full name field:
  348. #- OAUTH2_FULLNAME_MAP=name
  349. # Tthe claim name you want to map to the email field:
  350. #- OAUTH2_EMAIL_MAP=email
  351. #-----------------------------------------------------------------
  352. # ==== OAUTH2 Nextcloud ====
  353. # 1) Register the application with Nextcloud: https://your.nextcloud/index.php/settings/admin/security
  354. # Make sure you capture the application ID as well as generate a secret key.
  355. # Use https://your.wekan/_oauth/oidc for the redirect URI.
  356. # 2) Configure the environment variables. This differs slightly
  357. # by installation type, but make sure you have the following:
  358. #- OAUTH2_ENABLED=true
  359. # OAuth2 login style: popup or redirect.
  360. #- OAUTH2_LOGIN_STYLE=redirect
  361. # Application GUID captured during app registration:
  362. #- OAUTH2_CLIENT_ID=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
  363. # Secret key generated during app registration:
  364. #- OAUTH2_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  365. #- OAUTH2_SERVER_URL=https://your-nextcloud.tld
  366. #- OAUTH2_AUTH_ENDPOINT=/index.php/apps/oauth2/authorize
  367. #- OAUTH2_USERINFO_ENDPOINT=/ocs/v2.php/cloud/user?format=json
  368. #- OAUTH2_TOKEN_ENDPOINT=/index.php/apps/oauth2/api/v1/token
  369. # The claim name you want to map to the unique ID field:
  370. #- OAUTH2_ID_MAP=id
  371. # The claim name you want to map to the username field:
  372. #- OAUTH2_USERNAME_MAP=id
  373. # The claim name you want to map to the full name field:
  374. #- OAUTH2_FULLNAME_MAP=display-name
  375. # Tthe claim name you want to map to the email field:
  376. #- OAUTH2_EMAIL_MAP=email
  377. #-----------------------------------------------------------------
  378. # ==== OAUTH2 KEYCLOAK ====
  379. # https://github.com/wekan/wekan/wiki/Keycloak <== MAPPING INFO, REQUIRED
  380. #- OAUTH2_ENABLED=true
  381. # OAuth2 login style: popup or redirect.
  382. #- OAUTH2_LOGIN_STYLE=redirect
  383. #- OAUTH2_CLIENT_ID=<Keycloak create Client ID>
  384. #- OAUTH2_SERVER_URL=<Keycloak server name>/auth
  385. #- OAUTH2_AUTH_ENDPOINT=/realms/<keycloak realm>/protocol/openid-connect/auth
  386. #- OAUTH2_USERINFO_ENDPOINT=/realms/<keycloak realm>/protocol/openid-connect/userinfo
  387. #- OAUTH2_TOKEN_ENDPOINT=/realms/<keycloak realm>/protocol/openid-connect/token
  388. #- OAUTH2_SECRET=<keycloak client secret>
  389. #-----------------------------------------------------------------
  390. # ==== OAUTH2 DOORKEEPER ====
  391. # https://github.com/wekan/wekan/issues/1874
  392. # https://github.com/wekan/wekan/wiki/OAuth2
  393. # Enable the OAuth2 connection
  394. #- OAUTH2_ENABLED=true
  395. # OAuth2 docs: https://github.com/wekan/wekan/wiki/OAuth2
  396. # OAuth2 login style: popup or redirect.
  397. #- OAUTH2_LOGIN_STYLE=redirect
  398. # OAuth2 Client ID.
  399. #- OAUTH2_CLIENT_ID=abcde12345
  400. # OAuth2 Secret.
  401. #- OAUTH2_SECRET=54321abcde
  402. # OAuth2 Server URL.
  403. #- OAUTH2_SERVER_URL=https://chat.example.com
  404. # OAuth2 Authorization Endpoint.
  405. #- OAUTH2_AUTH_ENDPOINT=/oauth/authorize
  406. # OAuth2 Userinfo Endpoint.
  407. #- OAUTH2_USERINFO_ENDPOINT=/oauth/userinfo
  408. # OAuth2 Token Endpoint.
  409. #- OAUTH2_TOKEN_ENDPOINT=/oauth/token
  410. # OAUTH2 ID Token Whitelist Fields.
  411. #- OAUTH2_ID_TOKEN_WHITELIST_FIELDS=""
  412. # OAUTH2 Request Permissions.
  413. #- OAUTH2_REQUEST_PERMISSIONS=openid profile email
  414. # OAuth2 ID Mapping
  415. #- OAUTH2_ID_MAP=
  416. # OAuth2 Username Mapping
  417. #- OAUTH2_USERNAME_MAP=
  418. # OAuth2 Fullname Mapping
  419. #- OAUTH2_FULLNAME_MAP=
  420. # OAuth2 Email Mapping
  421. #- OAUTH2_EMAIL_MAP=
  422. #-----------------------------------------------------------------
  423. # ==== LDAP: UNCOMMENT ALL TO ENABLE LDAP ====
  424. # https://github.com/wekan/wekan/wiki/LDAP
  425. # For Snap settings see https://github.com/wekan/wekan-snap/wiki/Supported-settings-keys
  426. # Most settings work both on Snap and Docker below.
  427. # Note: Do not add single quotes '' to variables. Having spaces still works without quotes where required.
  428. #
  429. # The default authentication method used if a user does not exist to create and authenticate. Can be set as ldap.
  430. #- DEFAULT_AUTHENTICATION_METHOD=ldap
  431. #
  432. # Enable or not the connection by the LDAP
  433. #- LDAP_ENABLE=true
  434. #
  435. # The port of the LDAP server
  436. #- LDAP_PORT=389
  437. #
  438. # The host server for the LDAP server
  439. #- LDAP_HOST=localhost
  440. #
  441. # The base DN for the LDAP Tree
  442. #- LDAP_BASEDN=ou=user,dc=example,dc=org
  443. #
  444. # Fallback on the default authentication method
  445. #- LDAP_LOGIN_FALLBACK=false
  446. #
  447. # Reconnect to the server if the connection is lost
  448. #- LDAP_RECONNECT=true
  449. #
  450. # Overall timeout, in milliseconds
  451. #- LDAP_TIMEOUT=10000
  452. #
  453. # Specifies the timeout for idle LDAP connections in milliseconds
  454. #- LDAP_IDLE_TIMEOUT=10000
  455. #
  456. # Connection timeout, in milliseconds
  457. #- LDAP_CONNECT_TIMEOUT=10000
  458. #
  459. # If the LDAP needs a user account to search
  460. #- LDAP_AUTHENTIFICATION=true
  461. #
  462. # The search user DN - You need quotes when you have spaces in parameters
  463. # 2 examples:
  464. #- LDAP_AUTHENTIFICATION_USERDN="CN=ldap admin,CN=users,DC=domainmatter,DC=lan"
  465. #- LDAP_AUTHENTIFICATION_USERDN="CN=wekan_adm,OU=serviceaccounts,OU=admin,OU=prod,DC=mydomain,DC=com"
  466. #
  467. # The password for the search user
  468. #- LDAP_AUTHENTIFICATION_PASSWORD=pwd
  469. #
  470. # Enable logs for the module
  471. #- LDAP_LOG_ENABLED=true
  472. #
  473. # If the sync of the users should be done in the background
  474. #- LDAP_BACKGROUND_SYNC=false
  475. #
  476. # At which interval does the background task sync.
  477. # The format must be as specified in:
  478. # https://bunkat.github.io/later/parsers.html#text
  479. #- LDAP_BACKGROUND_SYNC_INTERVAL='every 1 hour'
  480. #
  481. #- LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false
  482. #
  483. #- LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=false
  484. #
  485. # If using LDAPS: LDAP_ENCRYPTION=ssl
  486. #- LDAP_ENCRYPTION=false
  487. #
  488. # The certification for the LDAPS server. Certificate needs to be included in this docker-compose.yml file.
  489. #- LDAP_CA_CERT=-----BEGIN CERTIFICATE-----MIIE+G2FIdAgIC...-----END CERTIFICATE-----
  490. #
  491. # Reject Unauthorized Certificate
  492. #- LDAP_REJECT_UNAUTHORIZED=false
  493. #
  494. # Option to login to the LDAP server with the user's own username and password, instead of an administrator key. Default: false (use administrator key).
  495. #- LDAP_USER_AUTHENTICATION="true"
  496. #
  497. # Which field is used to find the user for the user authentication. Default: uid.
  498. #- LDAP_USER_AUTHENTICATION_FIELD="uid"
  499. #
  500. # Optional extra LDAP filters. Don't forget the outmost enclosing parentheses if needed
  501. #- LDAP_USER_SEARCH_FILTER=
  502. #
  503. # base (search only in the provided DN), one (search only in the provided DN and one level deep), or sub (search the whole subtree)
  504. #- LDAP_USER_SEARCH_SCOPE=one
  505. #
  506. # Which field is used to find the user, like uid / sAMAccountName
  507. #- LDAP_USER_SEARCH_FIELD=sAMAccountName
  508. #
  509. # Used for pagination (0=unlimited)
  510. #- LDAP_SEARCH_PAGE_SIZE=0
  511. #
  512. # The limit number of entries (0=unlimited)
  513. #- LDAP_SEARCH_SIZE_LIMIT=0
  514. #
  515. # Enable group filtering. Note the authenticated ldap user must be able to query all relevant group data with own login data from ldap.
  516. #- LDAP_GROUP_FILTER_ENABLE=false
  517. #
  518. # The object class for filtering. Example: group
  519. #- LDAP_GROUP_FILTER_OBJECTCLASS=
  520. #
  521. # The attribute of a group identifying it. Example: cn
  522. #- LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE=
  523. #
  524. # The attribute inside a group object listing its members. Example: member
  525. #- LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE=
  526. #
  527. # The format of the value of LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE. Example: 'dn' if the users dn ist saved as value into the attribute.
  528. #- LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT=
  529. #
  530. # The group name (id) that matches all users.
  531. #- LDAP_GROUP_FILTER_GROUP_NAME=
  532. #
  533. # LDAP_UNIQUE_IDENTIFIER_FIELD : This field is sometimes class GUID (Globally Unique Identifier). Example: guid
  534. #- LDAP_UNIQUE_IDENTIFIER_FIELD=
  535. #
  536. # LDAP_UTF8_NAMES_SLUGIFY : Convert the username to utf8
  537. #- LDAP_UTF8_NAMES_SLUGIFY=true
  538. #
  539. # LDAP_USERNAME_FIELD : Which field contains the ldap username. username / sAMAccountName
  540. #- LDAP_USERNAME_FIELD=sAMAccountName
  541. #
  542. # LDAP_FULLNAME_FIELD : Which field contains the ldap fullname. fullname / sAMAccountName
  543. #- LDAP_FULLNAME_FIELD=fullname
  544. #
  545. #- LDAP_MERGE_EXISTING_USERS=false
  546. #
  547. # Allow existing account matching by e-mail address when username does not match
  548. #- LDAP_EMAIL_MATCH_ENABLE=true
  549. #
  550. # LDAP_EMAIL_MATCH_REQUIRE : require existing account matching by e-mail address when username does match
  551. #- LDAP_EMAIL_MATCH_REQUIRE=true
  552. #
  553. # LDAP_EMAIL_MATCH_VERIFIED : require existing account email address to be verified for matching
  554. #- LDAP_EMAIL_MATCH_VERIFIED=true
  555. #
  556. # LDAP_EMAIL_FIELD : which field contains the LDAP e-mail address
  557. #- LDAP_EMAIL_FIELD=mail
  558. #-----------------------------------------------------------------
  559. #- LDAP_SYNC_USER_DATA=false
  560. #
  561. #- LDAP_SYNC_USER_DATA_FIELDMAP={"cn":"name", "mail":"email"}
  562. #
  563. #- LDAP_SYNC_GROUP_ROLES=''
  564. #
  565. # 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
  566. # example :
  567. #- LDAP_DEFAULT_DOMAIN=mydomain.com
  568. #
  569. # Enable/Disable syncing of admin status based on ldap groups:
  570. #- LDAP_SYNC_ADMIN_STATUS=true
  571. #
  572. # Comma separated list of admin group names to sync.
  573. #- LDAP_SYNC_ADMIN_GROUPS=group1,group2
  574. #---------------------------------------------------------------------
  575. # Login to LDAP automatically with HTTP header.
  576. # In below example for siteminder, at right side of = is header name.
  577. #- HEADER_LOGIN_ID=HEADERUID
  578. #- HEADER_LOGIN_FIRSTNAME=HEADERFIRSTNAME
  579. #- HEADER_LOGIN_LASTNAME=HEADERLASTNAME
  580. #- HEADER_LOGIN_EMAIL=HEADEREMAILADDRESS
  581. #---------------------------------------------------------------------
  582. # ==== LOGOUT TIMER, probably does not work yet ====
  583. # LOGOUT_WITH_TIMER : Enables or not the option logout with timer
  584. # example : LOGOUT_WITH_TIMER=true
  585. #- LOGOUT_WITH_TIMER=
  586. #
  587. # LOGOUT_IN : The number of days
  588. # example : LOGOUT_IN=1
  589. #- LOGOUT_IN=
  590. #
  591. # LOGOUT_ON_HOURS : The number of hours
  592. # example : LOGOUT_ON_HOURS=9
  593. #- LOGOUT_ON_HOURS=
  594. #
  595. # LOGOUT_ON_MINUTES : The number of minutes
  596. # example : LOGOUT_ON_MINUTES=55
  597. #- LOGOUT_ON_MINUTES=
  598. #-------------------------------------------------------------------
  599. # Hide password login form
  600. # - PASSWORD_LOGIN_ENABLED=true
  601. #-------------------------------------------------------------------
  602. #- CAS_ENABLED=true
  603. #- CAS_BASE_URL=https://cas.example.com/cas
  604. #- CAS_LOGIN_URL=https://cas.example.com/login
  605. #- CAS_VALIDATE_URL=https://cas.example.com/cas/p3/serviceValidate
  606. #---------------------------------------------------------------------
  607. #- SAML_ENABLED=true
  608. #- SAML_PROVIDER=
  609. #- SAML_ENTRYPOINT=
  610. #- SAML_ISSUER=
  611. #- SAML_CERT=
  612. #- SAML_IDPSLO_REDIRECTURL=
  613. #- SAML_PRIVATE_KEYFILE=
  614. #- SAML_PUBLIC_CERTFILE=
  615. #- SAML_IDENTIFIER_FORMAT=
  616. #- SAML_LOCAL_PROFILE_MATCH_ATTRIBUTE=
  617. #- SAML_ATTRIBUTES=
  618. #---------------------------------------------------------------------
  619. depends_on:
  620. - wekandb
  621. #---------------------------------------------------------------------------------
  622. # ==== OPTIONAL: SHARE DATABASE TO OFFICE LAN AND REMOTE VPN ====
  623. # When using Wekan both at office LAN and remote VPN:
  624. # 1) Have above Wekan docker container config with LAN IP address
  625. # 2) Copy all of above wekan container config below, look above of this part above and all config below it,
  626. # before above depends_on: part:
  627. #
  628. # wekan:
  629. # #-------------------------------------------------------------------------------------
  630. # # ==== MONGODB AND METEOR VERSION ====
  631. # # a) For Wekan Meteor 1.8.x version at meteor-1.8 branch, .....
  632. #
  633. #
  634. # and change name to different name like wekan2 or wekanvpn, and change ROOT_URL to server VPN IP
  635. # address.
  636. # 3) This way both Wekan containers can use same MongoDB database
  637. # and see the same Wekan boards.
  638. # 4) You could also add 3rd Wekan container for 3rd network etc.
  639. # EXAMPLE:
  640. # wekan2:
  641. # ....COPY CONFIG FROM ABOVE TO HERE...
  642. # environment:
  643. # - ROOT_URL='http://10.10.10.10'
  644. # ...COPY CONFIG FROM ABOVE TO HERE...
  645. #---------------------------------------------------------------------------------
  646. # OPTIONAL NGINX CONFIG FOR REVERSE PROXY
  647. # nginx:
  648. # image: nginx
  649. # container_name: nginx
  650. # restart: always
  651. # networks:
  652. # - wekan-tier
  653. # depends_on:
  654. # - wekan
  655. # ports:
  656. # - 80:80
  657. # - 443:443
  658. # volumes:
  659. # - ./nginx/ssl:/etc/nginx/ssl/:ro
  660. # - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
  661. ## Alternative volume config:
  662. ## volumes:
  663. ## - ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
  664. ## - ./nginx/ssl/ssl.conf:/etc/nginx/conf.d/ssl/ssl.conf:ro
  665. ## - ./nginx/ssl/testvm-ehu.crt:/etc/nginx/conf.d/ssl/certs/mycert.crt:ro
  666. ## - ./nginx/ssl/testvm-ehu.key:/etc/nginx/conf.d/ssl/certs/mykey.key:ro
  667. ## - ./nginx/ssl/pphrase:/etc/nginx/conf.d/ssl/pphrase:ro
  668. volumes:
  669. wekan-db:
  670. driver: local
  671. wekan-db-dump:
  672. driver: local
  673. networks:
  674. wekan-tier:
  675. driver: bridge