No description
  • Shell 75.5%
  • Dockerfile 24.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-08-29 05:38:44 -04:00
docker-compose.yml Update docker-compose.yml 2024-08-29 05:36:02 -04:00
Dockerfile Initial commit 2023-12-06 18:52:38 +00:00
entrypoint.sh Initial commit 2023-12-06 18:52:38 +00:00
initdb.sh Initial commit 2023-12-06 18:52:38 +00:00
README.md Update README.md 2024-08-29 05:38:44 -04:00

syncstorage-rs-docker

A simple Docker container to get started with mozilla-services/syncstorage-rs to self-host a Firefox sync server.

Tested on Alma Linux + Nginx Reverse Proxy

Working on Both Desktop and Mobile

Getting started

  1. Clone this repo

git clone https://github.com/0xGingi/syncstorage-rs-docker.git

cd syncstorage-rs-docker

  1. Build the container

docker compose build

  1. Modify docker-compose.yml, changing the database password, generating a random SYNC_MASTER_SECRET & METRICS_HASH_SECRET and setting SYNC_URL.

  2. Bring up the database

docker compose up -d mariadb

  1. Create the two databases using initdb.sh. You'll need to provide your MariaDB root password.
chmod +x initdb.sh
./initdb.sh
  1. Bring up the rest of the compose stack

docker compose up -d

  1. Go to about:config in Firefox and set identity.sync.tokenserver.uri to http://YOURHOSTNAME:8000/1.0/sync/1.5

  2. Try to sync! (May need to logout of Firefox and Exit Browser then relogin else it will fail!)