docker-compose.yml 33 KB

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