docker-compose.yml 33 KB

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