service configurations for desearch.cc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
3.4 KiB

  1. # Using version 3 to provide play-with-docker badge
  2. # You can change to version 2 without breaking.
  3. #version: '2'
  4. version: '3'
  5. services:
  6. database:
  7. # Don't upgrade PostgreSQL by simply changing the version number
  8. # You need to migrate the Database to the new PostgreSQL version
  9. image: postgres:9.6-alpine
  10. #mem_limit: 256mb # version 2 only
  11. #memswap_limit: 512mb # version 2 only
  12. #read_only: true # not supported in swarm mode please enable along with tmpfs
  13. #tmpfs:
  14. # - /run/postgresql:size=512K
  15. # - /tmp:size=256K
  16. environment:
  17. - POSTGRES_USER=hedgedoc
  18. - POSTGRES_PASSWORD=e404+hB2x6Gu3wBycp55Sf8knEc+flOZxrKEBKZViog
  19. - POSTGRES_DB=hedgedoc
  20. volumes:
  21. - ./volumes/database:/var/lib/postgresql/data
  22. networks:
  23. backend:
  24. restart: always
  25. # MySQL example
  26. # Most of the documentation that applies to PostgreSQL applies also to MySQL
  27. #database:
  28. # # You should be able to upgrade MySQL without problems
  29. # # but to make sure no even when a problem appears you
  30. # # should have a backup
  31. # image: mariadb:10
  32. # environment:
  33. # - MYSQL_USER=hedgedoc
  34. # - MYSQL_PASSWORD=password
  35. # - MYSQL_DATABASE=hedgedoc
  36. # - MYSQL_ALLOW_EMPTY_PASSWORD=true
  37. # volumes:
  38. # - database:/var/lib/mysql
  39. # # This config provides UTF-8 support to the database by default
  40. # # If this config is not used, HedgeDoc breaks as it tries to write
  41. # # UTF-8 to a latin database.
  42. # - ./resources/utf8.cnf:/etc/mysql/conf.d/utf8.cnf
  43. # networks:
  44. # backend:
  45. # restart: always
  46. app:
  47. # Uncomment the following section to build the image yourself:
  48. #build:
  49. # context: .
  50. # dockerfile: debian/Dockerfile
  51. # args:
  52. # - "VERSION=master"
  53. # - "HEDGEDOC_REPOSITORY=https://github.com/hedgedoc/hedgedoc.git"
  54. #image: quay.io/hedgedoc/hedgedoc:1.8.2
  55. image: quay.io/hedgedoc/hedgedoc:1.9.0
  56. #mem_limit: 256mb # version 2 only
  57. #memswap_limit: 512mb # version 2 only
  58. #read_only: true # not supported in swarm mode, enable along with tmpfs
  59. #tmpfs:
  60. # - /tmp:size=10M
  61. # # Make sure you remove this when you use filesystem as upload type
  62. # - /hedgedoc/public/uploads:size=10M
  63. environment:
  64. # DB_URL is formatted like: <databasetype>://<username>:<password>@<hostname>:<port>/<database>
  65. # Other examples are:
  66. # - mysql://hedgedoc:password@database:3306/hedgedoc
  67. # - sqlite:///data/sqlite.db (NOT RECOMMENDED)
  68. # - For details see the official sequelize docs: http://docs.sequelizejs.com/en/v3/
  69. - CMD_DB_URL=postgres://hedgedoc:e404+hB2x6Gu3wBycp55Sf8knEc+flOZxrKEBKZViog@database:5432/hedgedoc
  70. - CMD_DOMAIN=pad.desearch.cc
  71. - CMD_ALLOW_FREEURL=true
  72. - CMD_PROTOCOL_USESSL=true
  73. volumes:
  74. - ./volumes/uploads:/hedgedoc/public/uploads
  75. ports:
  76. # Ports that are published to the outside.
  77. # The latter port is the port inside the container. It should always stay on 3000
  78. # If you only specify a port it'll published on all interfaces. If you want to use a
  79. # local reverse proxy, you may want to listen on 127.0.0.1.
  80. # Example:
  81. # - "127.0.0.1:3000:3000"
  82. - "3000:3000"
  83. networks:
  84. backend:
  85. restart: always
  86. depends_on:
  87. - database
  88. # Define networks to allow best isolation
  89. networks:
  90. # Internal network for communication with PostgreSQL/MySQL
  91. backend: