{"id":16162775,"url":"https://github.com/msrd0/docker-synapse-compressor","last_synced_at":"2026-06-30T19:31:12.725Z","repository":{"id":237414969,"uuid":"625607877","full_name":"msrd0/docker-synapse-compressor","owner":"msrd0","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-21T14:06:00.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-15T08:42:15.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msrd0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"msrd0"}},"created_at":"2023-04-09T16:29:41.000Z","updated_at":"2023-04-09T16:30:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"97ed5b94-6569-4e0b-bf61-6aa57fd14a57","html_url":"https://github.com/msrd0/docker-synapse-compressor","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"cd5880d8ece9f992ab1ad6a87d28b6c2a9dbc98b"},"previous_names":["msrd0/docker-synapse-compressor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/msrd0/docker-synapse-compressor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msrd0%2Fdocker-synapse-compressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msrd0%2Fdocker-synapse-compressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msrd0%2Fdocker-synapse-compressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msrd0%2Fdocker-synapse-compressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msrd0","download_url":"https://codeload.github.com/msrd0/docker-synapse-compressor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msrd0%2Fdocker-synapse-compressor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34981390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T02:32:57.539Z","updated_at":"2026-06-30T19:31:12.701Z","avatar_url":"https://github.com/msrd0.png","language":"Rust","funding_links":["https://github.com/sponsors/msrd0"],"categories":[],"sub_categories":[],"readme":"# docker-synapse-compressor\n\nThis is a docker image that allows for automated background compression of your synapse database. Basically, it is https://github.com/matrix-org/rust-synapse-compress-state but in a way that makes it suitable for docker-compose setups, i.e. using environment variables for configuration, and not relying on external cron-like daemons.\n\n## Configuration\n\nThe following is a list of all environment variables. Those marked with a \u003csup\u003e\u003cb\u003e*\u003c/b\u003e\u003c/sup\u003e are required. The documentation strings are directly taken from https://github.com/matrix-org/rust-synapse-compress-state.\n\n - `POSTGRES_URL`\u003csup\u003e\u003cb\u003e*\u003c/b\u003e\u003c/sup\u003e: The configruation for connecting to the postgres database.\n   \n   The configuration for connecting to the Postgres database. This should be of the form \n   postgresql://username:password@mydomain.com/database\" or a key-value pair \n   string: \"user=username password=password dbname=database host=mydomain.com\" \n   See https://docs.rs/tokio-postgres/0.7.2/tokio_postgres/config/struct.Config.html \n   for the full details.\n\n - `CHUNK_SIZE`\u003csup\u003e\u003cb\u003e*\u003c/b\u003e\u003c/sup\u003e: The maximum number of state groups to load into memroy at once.\n\n   The number of state_groups to work on at once. All of the entries\n   from state_groups_state are requested from the database\n   for state groups that are worked on. Therefore small\n   chunk sizes may be needed on machines with low memory.\n   (Note: if the compressor fails to find space savings on the\n   chunk as a whole (which may well happen in rooms with lots\n   of backfill in) then the entire chunk is skipped.)\n\n - `DEFAULT_LEVELS`: Sizes of each new level in the compression algorithm, as a comma separated list.\n\n   The first entry in the list is for the lowest, most granular level,\n   with each subsequent entry being for the next highest level.\n   The number of entries in the list determines the number of levels\n   that will be used.\n\n   The sum of the sizes of the levels effect the performance of fetching the state\n   from the database, as the sum of the sizes is the upper bound on number of\n   iterations needed to fetch a given set of state.\n\n - `NUMBER_OF_CHUNKS`: The number of chunks to compress.\n\n   This many chunks of the database will be compressed. The higher this number is set to,\n   the longer the compressor will run for.\n\n - `RUST_LOG`: Log level\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsrd0%2Fdocker-synapse-compressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsrd0%2Fdocker-synapse-compressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsrd0%2Fdocker-synapse-compressor/lists"}