docker-compose.yml 38 KB

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