docker-compose.yml 29 KB

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