docker-compose-postgresql.yml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. version: '2'
  2. # Docker: Wekan <=> MongoDB <=> ToroDB => PostgreSQL read-only mirroring
  3. # for reporting with SQL, and accessing with any programming language,
  4. # reporting package and Office suite that can connect to PostgreSQL.
  5. # https://github.com/wekan/wekan-postgresql
  6. services:
  7. torodb-stampede:
  8. image: torodb/stampede:1.0.0-SNAPSHOT
  9. networks:
  10. - wekan-tier
  11. links:
  12. - postgres
  13. - mongodb
  14. environment:
  15. - POSTGRES_PASSWORD
  16. - TORODB_SETUP=true
  17. - TORODB_SYNC_SOURCE=mongodb:27017
  18. - TORODB_BACKEND_HOST=postgres
  19. - TORODB_BACKEND_PORT=5432
  20. - TORODB_BACKEND_DATABASE=wekan
  21. - TORODB_BACKEND_USER=wekan
  22. - TORODB_BACKEND_PASSWORD=wekan
  23. - DEBUG
  24. postgres:
  25. image: postgres:9.6
  26. networks:
  27. - wekan-tier
  28. environment:
  29. - POSTGRES_PASSWORD
  30. ports:
  31. - "15432:5432"
  32. mongodb:
  33. image: mongo:3.2
  34. networks:
  35. - wekan-tier
  36. ports:
  37. - "28017:27017"
  38. entrypoint:
  39. - /bin/bash
  40. - "-c"
  41. - mongo --nodb --eval '
  42. var db;
  43. while (!db) {
  44. try {
  45. db = new Mongo("mongodb:27017").getDB("local");
  46. } catch(ex) {}
  47. sleep(3000);
  48. };
  49. rs.initiate({_id:"rs1",members:[{_id:0,host:"mongodb:27017"}]});
  50. ' 1>/dev/null 2>&1 &
  51. mongod --replSet rs1
  52. wekan:
  53. image: quay.io/wekan/wekan
  54. container_name: wekan-app
  55. restart: always
  56. networks:
  57. - wekan-tier
  58. ports:
  59. - 80:8080
  60. environment:
  61. - MONGO_URL=mongodb://mongodb:27017/wekan
  62. - ROOT_URL=http://localhost
  63. #---------------------------------------------------------------
  64. # == WEKAN API ==
  65. # Wekan Export Board works when WITH_API='true'.
  66. # If you disable Wekan API, Export Board does not work.
  67. - WITH_API=true
  68. # Optional: Integration with Matomo https://matomo.org that is installed to your server
  69. # The address of the server where Matomo is hosted.
  70. # example: - MATOMO_ADDRESS=https://example.com/matomo
  71. #- MATOMO_ADDRESS=
  72. # The value of the site ID given in Matomo server for Wekan
  73. # example: - MATOMO_SITE_ID=12345
  74. #- MATOMO_SITE_ID=
  75. # The option do not track which enables users to not be tracked by matomo
  76. # example: - MATOMO_DO_NOT_TRACK=false
  77. #- MATOMO_DO_NOT_TRACK=
  78. # The option that allows matomo to retrieve the username:
  79. # example: MATOMO_WITH_USERNAME=true
  80. #- MATOMO_WITH_USERNAME=false
  81. # Enable browser policy and allow one trusted URL that can have iframe that has Wekan embedded inside.
  82. # Setting this to false is not recommended, it also disables all other browser policy protections
  83. # and allows all iframing etc. See wekan/server/policy.js
  84. - BROWSER_POLICY_ENABLED=true
  85. # When browser policy is enabled, HTML code at this Trusted URL can have iframe that embeds Wekan inside.
  86. #- TRUSTED_URL=
  87. # What to send to Outgoing Webhook, or leave out. Example, that includes all that are default: cardId,listId,oldListId,boardId,comment,user,card,commentId .
  88. # example: WEBHOOKS_ATTRIBUTES=cardId,listId,oldListId,boardId,comment,user,card,commentId
  89. #- WEBHOOKS_ATTRIBUTES=
  90. # Enable the OAuth2 connection
  91. # example: OAUTH2_ENABLED=true
  92. #- OAUTH2_ENABLED=false
  93. # OAuth2 docs: https://github.com/wekan/wekan/wiki/OAuth2
  94. # OAuth2 Client ID, for example from Rocket.Chat. Example: abcde12345
  95. # example: OAUTH2_CLIENT_ID=abcde12345
  96. #- OAUTH2_CLIENT_ID=
  97. # OAuth2 Secret, for example from Rocket.Chat: Example: 54321abcde
  98. # example: OAUTH2_SECRET=54321abcde
  99. #- OAUTH2_SECRET=
  100. # OAuth2 Server URL, for example Rocket.Chat. Example: https://chat.example.com
  101. # example: OAUTH2_SERVER_URL=https://chat.example.com
  102. #- OAUTH2_SERVER_URL=
  103. # OAuth2 Authorization Endpoint. Example: /oauth/authorize
  104. # example: OAUTH2_AUTH_ENDPOINT=/oauth/authorize
  105. #- OAUTH2_AUTH_ENDPOINT=
  106. # OAuth2 Userinfo Endpoint. Example: /oauth/userinfo
  107. # example: OAUTH2_USERINFO_ENDPOINT=/oauth/userinfo
  108. #- OAUTH2_USERINFO_ENDPOINT=
  109. # OAuth2 Token Endpoint. Example: /oauth/token
  110. # example: OAUTH2_TOKEN_ENDPOINT=/oauth/token
  111. #- OAUTH2_TOKEN_ENDPOINT=
  112. # LDAP_ENABLE : Enable or not the connection by the LDAP
  113. # example : LDAP_ENABLE=true
  114. #- LDAP_ENABLE=false
  115. # LDAP_PORT : The port of the LDAP server
  116. # example : LDAP_PORT=389
  117. #- LDAP_PORT=389
  118. # LDAP_HOST : The host server for the LDAP server
  119. # example : LDAP_HOST=localhost
  120. #- LDAP_HOST=
  121. # LDAP_BASEDN : The base DN for the LDAP Tree
  122. # example : LDAP_BASEDN=ou=user,dc=example,dc=org
  123. #- LDAP_BASEDN=
  124. # LDAP_LOGIN_FALLBACK : Fallback on the default authentication method
  125. # example : LDAP_LOGIN_FALLBACK=true
  126. #- LDAP_LOGIN_FALLBACK=false
  127. # LDAP_RECONNECT : Reconnect to the server if the connection is lost
  128. # example : LDAP_RECONNECT=false
  129. #- LDAP_RECONNECT=true
  130. # LDAP_TIMEOUT : Overall timeout, in milliseconds
  131. # example : LDAP_TIMEOUT=12345
  132. #- LDAP_TIMEOUT=10000
  133. # LDAP_IDLE_TIMEOUT : Specifies the timeout for idle LDAP connections in milliseconds
  134. # example : LDAP_IDLE_TIMEOUT=12345
  135. #- LDAP_IDLE_TIMEOUT=10000
  136. # LDAP_CONNECT_TIMEOUT : Connection timeout, in milliseconds
  137. # example : LDAP_CONNECT_TIMEOUT=12345
  138. #- LDAP_CONNECT_TIMEOUT=10000
  139. # LDAP_AUTHENTIFICATION : If the LDAP needs a user account to search
  140. # example : LDAP_AUTHENTIFICATION=true
  141. #- LDAP_AUTHENTIFICATION=false
  142. # LDAP_AUTHENTIFICATION_USERDN : The search user DN
  143. # example : LDAP_AUTHENTIFICATION_USERDN=cn=admin,dc=example,dc=org
  144. #- LDAP_AUTHENTIFICATION_USERDN=
  145. # LDAP_AUTHENTIFICATION_PASSWORD : The password for the search user
  146. # example : AUTHENTIFICATION_PASSWORD=admin
  147. #- LDAP_AUTHENTIFICATION_PASSWORD=
  148. # LDAP_LOG_ENABLED : Enable logs for the module
  149. # example : LDAP_LOG_ENABLED=true
  150. #- LDAP_LOG_ENABLED=false
  151. # LDAP_BACKGROUND_SYNC : If the sync of the users should be done in the background
  152. # example : LDAP_BACKGROUND_SYNC=true
  153. #- LDAP_BACKGROUND_SYNC=false
  154. # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
  155. # example : LDAP_BACKGROUND_SYNC_INTERVAL=12345
  156. #- LDAP_BACKGROUND_SYNC_INTERVAL=100
  157. # LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED :
  158. # example : LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=true
  159. #- LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false
  160. # LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS :
  161. # example : LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=true
  162. #- LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=false
  163. # LDAP_ENCRYPTION : If using LDAPS
  164. # example : LDAP_ENCRYPTION=ssl
  165. #- LDAP_ENCRYPTION=false
  166. # LDAP_CA_CERT : The certification for the LDAPS server. Certificate needs to be included in this docker-compose.yml file.
  167. # example : LDAP_CA_CERT=-----BEGIN CERTIFICATE-----MIIE+zCCA+OgAwIBAgIkAhwR/6TVLmdRY6hHxvUFWc0+Enmu/Hu6cj+G2FIdAgIC...-----END CERTIFICATE-----
  168. #- LDAP_CA_CERT=
  169. # LDAP_REJECT_UNAUTHORIZED : Reject Unauthorized Certificate
  170. # example : LDAP_REJECT_UNAUTHORIZED=true
  171. #- LDAP_REJECT_UNAUTHORIZED=false
  172. # LDAP_USER_SEARCH_FILTER : Optional extra LDAP filters. Don't forget the outmost enclosing parentheses if needed
  173. # example : LDAP_USER_SEARCH_FILTER=
  174. #- LDAP_USER_SEARCH_FILTER=
  175. # 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)
  176. # example : LDAP_USER_SEARCH_SCOPE=one
  177. #- LDAP_USER_SEARCH_SCOPE=
  178. # LDAP_USER_SEARCH_FIELD : Which field is used to find the user
  179. # example : LDAP_USER_SEARCH_FIELD=uid
  180. #- LDAP_USER_SEARCH_FIELD=
  181. # LDAP_SEARCH_PAGE_SIZE : Used for pagination (0=unlimited)
  182. # example : LDAP_SEARCH_PAGE_SIZE=12345
  183. #- LDAP_SEARCH_PAGE_SIZE=0
  184. # LDAP_SEARCH_SIZE_LIMIT : The limit number of entries (0=unlimited)
  185. # example : LDAP_SEARCH_SIZE_LIMIT=12345
  186. #- LDAP_SEARCH_SIZE_LIMIT=0
  187. # LDAP_GROUP_FILTER_ENABLE : Enable group filtering
  188. # example : LDAP_GROUP_FILTER_ENABLE=true
  189. #- LDAP_GROUP_FILTER_ENABLE=false
  190. # LDAP_GROUP_FILTER_OBJECTCLASS : The object class for filtering
  191. # example : LDAP_GROUP_FILTER_OBJECTCLASS=group
  192. #- LDAP_GROUP_FILTER_OBJECTCLASS=
  193. # LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE :
  194. # example :
  195. #- LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE=
  196. # LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE :
  197. # example :
  198. #- LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE=
  199. # LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT :
  200. # example :
  201. #- LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT=
  202. # LDAP_GROUP_FILTER_GROUP_NAME :
  203. # example :
  204. #- LDAP_GROUP_FILTER_GROUP_NAME=
  205. # LDAP_UNIQUE_IDENTIFIER_FIELD : This field is sometimes class GUID (Globally Unique Identifier)
  206. # example : LDAP_UNIQUE_IDENTIFIER_FIELD=guid
  207. #- LDAP_UNIQUE_IDENTIFIER_FIELD=
  208. # LDAP_UTF8_NAMES_SLUGIFY : Convert the username to utf8
  209. # example : LDAP_UTF8_NAMES_SLUGIFY=false
  210. #- LDAP_UTF8_NAMES_SLUGIFY=true
  211. # LDAP_USERNAME_FIELD : Which field contains the ldap username
  212. # example : LDAP_USERNAME_FIELD=username
  213. #- LDAP_USERNAME_FIELD=
  214. # LDAP_MERGE_EXISTING_USERS :
  215. # example : LDAP_MERGE_EXISTING_USERS=true
  216. #- LDAP_MERGE_EXISTING_USERS=false
  217. # LDAP_SYNC_USER_DATA :
  218. # example : LDAP_SYNC_USER_DATA=true
  219. #- LDAP_SYNC_USER_DATA=false
  220. # LDAP_SYNC_USER_DATA_FIELDMAP :
  221. # example : LDAP_SYNC_USER_DATA_FIELDMAP={"cn":"name", "mail":"email"}
  222. #- LDAP_SYNC_USER_DATA_FIELDMAP=
  223. # LDAP_SYNC_GROUP_ROLES :
  224. # example :
  225. #- LDAP_SYNC_GROUP_ROLES=
  226. # 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
  227. # example :
  228. #- LDAP_DEFAULT_DOMAIN=
  229. depends_on:
  230. - mongodb
  231. volumes:
  232. mongodb:
  233. driver: local
  234. mongodb-dump:
  235. driver: local
  236. networks:
  237. wekan-tier:
  238. driver: bridge