docker-compose.yml 36 KB

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