docker-compose-postgresql.yml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  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. # CORS: Set Access-Control-Allow-Origin header. Example: *
  69. #- CORS=*
  70. # Optional: Integration with Matomo https://matomo.org that is installed to your server
  71. # The address of the server where Matomo is hosted.
  72. # example: - MATOMO_ADDRESS=https://example.com/matomo
  73. #- MATOMO_ADDRESS=
  74. # The value of the site ID given in Matomo server for Wekan
  75. # example: - MATOMO_SITE_ID=12345
  76. #- MATOMO_SITE_ID=
  77. # The option do not track which enables users to not be tracked by matomo
  78. # example: - MATOMO_DO_NOT_TRACK=false
  79. #- MATOMO_DO_NOT_TRACK=
  80. # The option that allows matomo to retrieve the username:
  81. # example: MATOMO_WITH_USERNAME=true
  82. #- MATOMO_WITH_USERNAME=false
  83. # Enable browser policy and allow one trusted URL that can have iframe that has Wekan embedded inside.
  84. # Setting this to false is not recommended, it also disables all other browser policy protections
  85. # and allows all iframing etc. See wekan/server/policy.js
  86. - BROWSER_POLICY_ENABLED=true
  87. # When browser policy is enabled, HTML code at this Trusted URL can have iframe that embeds Wekan inside.
  88. #- TRUSTED_URL=
  89. # What to send to Outgoing Webhook, or leave out. Example, that includes all that are default: cardId,listId,oldListId,boardId,comment,user,card,commentId .
  90. # example: WEBHOOKS_ATTRIBUTES=cardId,listId,oldListId,boardId,comment,user,card,commentId
  91. #- WEBHOOKS_ATTRIBUTES=
  92. # Enable the OAuth2 connection
  93. # example: OAUTH2_ENABLED=true
  94. #- OAUTH2_ENABLED=false
  95. # OAuth2 docs: https://github.com/wekan/wekan/wiki/OAuth2
  96. # OAuth2 Client ID, for example from Rocket.Chat. Example: abcde12345
  97. # example: OAUTH2_CLIENT_ID=abcde12345
  98. #- OAUTH2_CLIENT_ID=
  99. # OAuth2 Secret, for example from Rocket.Chat: Example: 54321abcde
  100. # example: OAUTH2_SECRET=54321abcde
  101. #- OAUTH2_SECRET=
  102. # OAuth2 Server URL, for example Rocket.Chat. Example: https://chat.example.com
  103. # example: OAUTH2_SERVER_URL=https://chat.example.com
  104. #- OAUTH2_SERVER_URL=
  105. # OAuth2 Authorization Endpoint. Example: /oauth/authorize
  106. # example: OAUTH2_AUTH_ENDPOINT=/oauth/authorize
  107. #- OAUTH2_AUTH_ENDPOINT=
  108. # OAuth2 Userinfo Endpoint. Example: /oauth/userinfo
  109. # example: OAUTH2_USERINFO_ENDPOINT=/oauth/userinfo
  110. #- OAUTH2_USERINFO_ENDPOINT=
  111. # OAuth2 Token Endpoint. Example: /oauth/token
  112. # example: OAUTH2_TOKEN_ENDPOINT=/oauth/token
  113. #- OAUTH2_TOKEN_ENDPOINT=
  114. # LDAP_ENABLE : Enable or not the connection by the LDAP
  115. # example : LDAP_ENABLE=true
  116. #- LDAP_ENABLE=false
  117. # LDAP_PORT : The port of the LDAP server
  118. # example : LDAP_PORT=389
  119. #- LDAP_PORT=389
  120. # LDAP_HOST : The host server for the LDAP server
  121. # example : LDAP_HOST=localhost
  122. #- LDAP_HOST=
  123. # LDAP_BASEDN : The base DN for the LDAP Tree
  124. # example : LDAP_BASEDN=ou=user,dc=example,dc=org
  125. #- LDAP_BASEDN=
  126. # LDAP_LOGIN_FALLBACK : Fallback on the default authentication method
  127. # example : LDAP_LOGIN_FALLBACK=true
  128. #- LDAP_LOGIN_FALLBACK=false
  129. # LDAP_RECONNECT : Reconnect to the server if the connection is lost
  130. # example : LDAP_RECONNECT=false
  131. #- LDAP_RECONNECT=true
  132. # LDAP_TIMEOUT : Overall timeout, in milliseconds
  133. # example : LDAP_TIMEOUT=12345
  134. #- LDAP_TIMEOUT=10000
  135. # LDAP_IDLE_TIMEOUT : Specifies the timeout for idle LDAP connections in milliseconds
  136. # example : LDAP_IDLE_TIMEOUT=12345
  137. #- LDAP_IDLE_TIMEOUT=10000
  138. # LDAP_CONNECT_TIMEOUT : Connection timeout, in milliseconds
  139. # example : LDAP_CONNECT_TIMEOUT=12345
  140. #- LDAP_CONNECT_TIMEOUT=10000
  141. # LDAP_AUTHENTIFICATION : If the LDAP needs a user account to search
  142. # example : LDAP_AUTHENTIFICATION=true
  143. #- LDAP_AUTHENTIFICATION=false
  144. # LDAP_AUTHENTIFICATION_USERDN : The search user DN
  145. # example : LDAP_AUTHENTIFICATION_USERDN=cn=admin,dc=example,dc=org
  146. #- LDAP_AUTHENTIFICATION_USERDN=
  147. # LDAP_AUTHENTIFICATION_PASSWORD : The password for the search user
  148. # example : AUTHENTIFICATION_PASSWORD=admin
  149. #- LDAP_AUTHENTIFICATION_PASSWORD=
  150. # LDAP_LOG_ENABLED : Enable logs for the module
  151. # example : LDAP_LOG_ENABLED=true
  152. #- LDAP_LOG_ENABLED=false
  153. # LDAP_BACKGROUND_SYNC : If the sync of the users should be done in the background
  154. # example : LDAP_BACKGROUND_SYNC=true
  155. #- LDAP_BACKGROUND_SYNC=false
  156. # LDAP_BACKGROUND_SYNC_INTERVAL : At which interval does the background task sync in milliseconds
  157. # example : LDAP_BACKGROUND_SYNC_INTERVAL=12345
  158. #- LDAP_BACKGROUND_SYNC_INTERVAL=100
  159. # LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED :
  160. # example : LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=true
  161. #- LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED=false
  162. # LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS :
  163. # example : LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=true
  164. #- LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS=false
  165. # LDAP_ENCRYPTION : If using LDAPS
  166. # example : LDAP_ENCRYPTION=ssl
  167. #- LDAP_ENCRYPTION=false
  168. # LDAP_CA_CERT : The certification for the LDAPS server. Certificate needs to be included in this docker-compose.yml file.
  169. # example : LDAP_CA_CERT=-----BEGIN CERTIFICATE-----MIIE+zCCA+OgAwIBAgIkAhwR/6TVLmdRY6hHxvUFWc0+Enmu/Hu6cj+G2FIdAgIC...-----END CERTIFICATE-----
  170. #- LDAP_CA_CERT=
  171. # LDAP_REJECT_UNAUTHORIZED : Reject Unauthorized Certificate
  172. # example : LDAP_REJECT_UNAUTHORIZED=true
  173. #- LDAP_REJECT_UNAUTHORIZED=false
  174. # LDAP_USER_SEARCH_FILTER : Optional extra LDAP filters. Don't forget the outmost enclosing parentheses if needed
  175. # example : LDAP_USER_SEARCH_FILTER=
  176. #- LDAP_USER_SEARCH_FILTER=
  177. # 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)
  178. # example : LDAP_USER_SEARCH_SCOPE=one
  179. #- LDAP_USER_SEARCH_SCOPE=
  180. # LDAP_USER_SEARCH_FIELD : Which field is used to find the user
  181. # example : LDAP_USER_SEARCH_FIELD=uid
  182. #- LDAP_USER_SEARCH_FIELD=
  183. # LDAP_SEARCH_PAGE_SIZE : Used for pagination (0=unlimited)
  184. # example : LDAP_SEARCH_PAGE_SIZE=12345
  185. #- LDAP_SEARCH_PAGE_SIZE=0
  186. # LDAP_SEARCH_SIZE_LIMIT : The limit number of entries (0=unlimited)
  187. # example : LDAP_SEARCH_SIZE_LIMIT=12345
  188. #- LDAP_SEARCH_SIZE_LIMIT=0
  189. # LDAP_GROUP_FILTER_ENABLE : Enable group filtering
  190. # example : LDAP_GROUP_FILTER_ENABLE=true
  191. #- LDAP_GROUP_FILTER_ENABLE=false
  192. # LDAP_GROUP_FILTER_OBJECTCLASS : The object class for filtering
  193. # example : LDAP_GROUP_FILTER_OBJECTCLASS=group
  194. #- LDAP_GROUP_FILTER_OBJECTCLASS=
  195. # LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE :
  196. # example :
  197. #- LDAP_GROUP_FILTER_GROUP_ID_ATTRIBUTE=
  198. # LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE :
  199. # example :
  200. #- LDAP_GROUP_FILTER_GROUP_MEMBER_ATTRIBUTE=
  201. # LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT :
  202. # example :
  203. #- LDAP_GROUP_FILTER_GROUP_MEMBER_FORMAT=
  204. # LDAP_GROUP_FILTER_GROUP_NAME :
  205. # example :
  206. #- LDAP_GROUP_FILTER_GROUP_NAME=
  207. # LDAP_UNIQUE_IDENTIFIER_FIELD : This field is sometimes class GUID (Globally Unique Identifier)
  208. # example : LDAP_UNIQUE_IDENTIFIER_FIELD=guid
  209. #- LDAP_UNIQUE_IDENTIFIER_FIELD=
  210. # LDAP_UTF8_NAMES_SLUGIFY : Convert the username to utf8
  211. # example : LDAP_UTF8_NAMES_SLUGIFY=false
  212. #- LDAP_UTF8_NAMES_SLUGIFY=true
  213. # LDAP_USERNAME_FIELD : Which field contains the ldap username
  214. # example : LDAP_USERNAME_FIELD=username
  215. #- LDAP_USERNAME_FIELD=
  216. # LDAP_FULLNAME_FIELD : Which field contains the ldap fullname
  217. # example : LDAP_FULLNAME_FIELD=fullname
  218. #- LDAP_FULLNAME_FIELD=
  219. # LDAP_MERGE_EXISTING_USERS :
  220. # example : LDAP_MERGE_EXISTING_USERS=true
  221. #- LDAP_MERGE_EXISTING_USERS=false
  222. # LDAP_SYNC_USER_DATA :
  223. # example : LDAP_SYNC_USER_DATA=true
  224. #- LDAP_SYNC_USER_DATA=false
  225. # LDAP_SYNC_USER_DATA_FIELDMAP :
  226. # example : LDAP_SYNC_USER_DATA_FIELDMAP={"cn":"name", "mail":"email"}
  227. #- LDAP_SYNC_USER_DATA_FIELDMAP=
  228. # LDAP_SYNC_GROUP_ROLES :
  229. # example :
  230. #- LDAP_SYNC_GROUP_ROLES=
  231. # 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
  232. # example :
  233. #- LDAP_DEFAULT_DOMAIN=
  234. # LOGOUT_WITH_TIMER : Enables or not the option logout with timer
  235. # example : LOGOUT_WITH_TIMER=true
  236. #- LOGOUT_WITH_TIMER=
  237. # LOGOUT_IN : The number of days
  238. # example : LOGOUT_IN=1
  239. #- LOGOUT_IN=
  240. # LOGOUT_ON_HOURS : The number of hours
  241. # example : LOGOUT_ON_HOURS=9
  242. #- LOGOUT_ON_HOURS=
  243. # LOGOUT_ON_MINUTES : The number of minutes
  244. # example : LOGOUT_ON_MINUTES=55
  245. #- LOGOUT_ON_MINUTES=
  246. depends_on:
  247. - mongodb
  248. volumes:
  249. mongodb:
  250. driver: local
  251. mongodb-dump:
  252. driver: local
  253. networks:
  254. wekan-tier:
  255. driver: bridge