docker-compose.yml 36 KB

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