Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

78 行
1.9KB

  1. version: '3'
  2. services:
  3. web:
  4. build: .
  5. image: pleroma/pleroma
  6. restart: always
  7. # env_file: .env.production
  8. networks:
  9. - external_network
  10. - internal_network
  11. healthcheck:
  12. test: ["CMD", "curl", "-s", "-f", "--noproxy", "localhost:4000", "localhost:4000/health"]
  13. ports:
  14. - "127.0.0.1:4000:4000"
  15. depends_on:
  16. - db
  17. # - es
  18. volumes:
  19. - ./uploads:/var/lib/pleroma/uploads
  20. - ./config:/var/lib/pleroma/config
  21. db:
  22. restart: always
  23. image: postgres:14-alpine
  24. # shm_size: 256mb
  25. networks:
  26. - internal_network
  27. healthcheck:
  28. test: ["CMD", "pg_isready", "-U", "postgres"]
  29. volumes:
  30. - ./postgres:/var/lib/postgresql/data
  31. environment:
  32. - "POSTGRES_HOST_AUTH_METHOD=trust"
  33. ## https://coffee-and-dreams.uk/tutorials/2021/12/15/integrating-elasticsearch-with-pleroma.html
  34. ## https://git.pleroma.social/pleroma/pleroma/-/issues/1331
  35. # es:
  36. # restart: always
  37. # image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
  38. # environment:
  39. # - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  40. # - "cluster.name=es-pleroma"
  41. # - "discovery.type=single-node"
  42. # - "bootstrap.memory_lock=true"
  43. # networks:
  44. # - internal_network
  45. # healthcheck:
  46. # test: ["CMD", "curl", "-s", "-f", "localhost:9200/_cluster/health"]
  47. # volumes:
  48. # - ./elasticsearch:/usr/share/elasticsearch/data
  49. # ulimits:
  50. # memlock:
  51. # soft: -1
  52. # hard: -1
  53. ## Uncomment to enable federation with tor instances along with adding the following ENV variables
  54. ## http_proxy=http://privoxy:8118
  55. ## ALLOW_ACCESS_TO_HIDDEN_SERVICE=true
  56. # tor:
  57. # image: sirboops/tor
  58. # networks:
  59. # - external_network
  60. # - internal_network
  61. #
  62. # privoxy:
  63. # image: sirboops/privoxy
  64. # volumes:
  65. # - ./priv-config:/opt/config
  66. # networks:
  67. # - external_network
  68. # - internal_network
  69. networks:
  70. external_network:
  71. internal_network:
  72. internal: true