4
0

docker-compose-db.yml 679 B

1234567891011121314151617181920212223242526272829
  1. version: "2.4"
  2. volumes:
  3. db:
  4. services:
  5. freshrss-db:
  6. image: postgres:17
  7. container_name: freshrss-db
  8. hostname: freshrss-db
  9. restart: unless-stopped
  10. logging:
  11. options:
  12. max-size: 10m
  13. volumes:
  14. - db:/var/lib/postgresql/data
  15. environment:
  16. POSTGRES_DB: ${DB_BASE:-freshrss}
  17. POSTGRES_USER: ${DB_USER:-freshrss}
  18. POSTGRES_PASSWORD: ${DB_PASSWORD:-freshrss}
  19. command:
  20. # Examples of PostgreSQL tuning.
  21. # https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
  22. # When in doubt, skip and stick to default PostgreSQL settings.
  23. - -c
  24. - shared_buffers=1GB
  25. - -c
  26. - work_mem=32MB