docker-compose.yml 27 KB

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