docker-compose.yml-arm64 37 KB

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