docker-compose-db.yml 657 B

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