docker-compose.yml 37 KB

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