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.

50 lines
1.5 KiB

  1. version: "3.7"
  2. services:
  3. db:
  4. image: postgres:10-alpine
  5. init: true
  6. restart: unless-stopped
  7. environment: {
  8. # This might seem insecure but is usually not a problem.
  9. # You should leave this at the "pleroma" default.
  10. # The DB is only reachable by containers in the same docker network,
  11. # and is not exposed to the open internet.
  12. #
  13. # If you do change this, remember to update "config.exs".
  14. POSTGRES_DB: pleroma,
  15. POSTGRES_USER: pleroma,
  16. POSTGRES_PASSWORD: pleroma,
  17. }
  18. volumes:
  19. - $DOCKER_DATADIR/db:/var/lib/postgresql/data
  20. - ./initdb.sql:/docker-entrypoint-initdb.d/pleroma.sql
  21. server:
  22. build: .
  23. init: true
  24. restart: unless-stopped
  25. links:
  26. - db
  27. ports: [
  28. # Uncomment/Change port mappings below as needed.
  29. # The left side is your host machine, the right one is the pleroma container.
  30. # You can prefix the left side with an ip.
  31. # Webserver (for reverse-proxies outside of docker)
  32. # If you use a dockerized proxy (see README), you can leave this commented
  33. # and use a container link instead.
  34. # "127.0.0.1:4000:4000",
  35. # SSH support
  36. # "2222:2222",
  37. # Gopher support
  38. # "9999:9999",
  39. ]
  40. volumes:
  41. - ./custom.d:/custom.d:ro
  42. - ./config.exs:/home/pleroma/pleroma/config/prod.secret.exs:ro
  43. - ./config.exs:/home/pleroma/pleroma/config/dev.secret.exs:ro
  44. - ./emoji:/home/pleroma/pleroma/instance/static/emoji
  45. - $DOCKER_DATADIR/uploads:/uploads