Skip to content

🐳 Firefox Sync Server image based on Python Alpine Linux

License

Notifications You must be signed in to change notification settings

b00bob/docker-firefox-syncserver

 
 

Repository files navigation

Version Build Status Docker Stars Docker Pulls Docker Repository on Quay Code Quality Donate Paypal

About

🐳 Firefox Sync Server image based on Python Alpine Linux.
If you are interested, check out my other 🐳 Docker images!

Features

Included

  • Alpine Linux 3.8

From docker-compose

  • Traefik as reverse proxy and creation/renewal of Let's Encrypt certificates

Docker

Environment variables

  • TZ : The timezone assigned to the container (default UTC)
  • FF_SYNCSERVER_PUBLIC_URL : Must be edited to point to the public URL of your server (default http://localhost:5000).
  • FF_SYNCSERVER_SECRET : This is a secret key used for signing authentication tokens. It should be long and randomly-generated.
  • FF_SYNCSERVER_ALLOW_NEW_USERS : Set this to false to disable new-user signups on the server. Only request by existing accounts will be honoured (default true).
  • FF_SYNCSERVER_FORCE_WSGI_ENVIRON : Set this to true to work around a mismatch between public_url and the application URL as seen by python, which can happen in certain reverse-proxy hosting setups (default false).
  • FF_SYNCSERVER_SQLURI : Defines the database in which to store all server data (default sqlite:///data/syncserver.db).

Volumes

  • /data : Contains SQLite database if FF_SYNCSERVER_SQLURI is untouched

Ports

  • 5000 : Gunicorn port

Use this image

Docker Compose

Docker compose is the recommended way to run this image. You can use the following docker compose template, then run the container :

touch acme.json
chmod 600 acme.json
docker-compose up -d
docker-compose logs -f

Command line

You can also use the following minimal command :

$ docker run -d -p 5000:5000 --name firefox_syncserver \
  -e TZ="Europe/Paris" \
  -e FF_SYNCSERVER_SECRET="5up3rS3kr1t" \
  -v $(pwd)/data:/data \
  crazymax/firefox-syncserver:latest

Update

Recreate the container whenever i push an update :

docker-compose pull
docker-compose up -d

How can I help ?

All kinds of contributions are welcome 🙌!
The most basic way to show your support is to star 🌟 the project, or to raise issues 💬
But we're not gonna lie to each other, I'd rather you buy me a beer or two 🍻!

Paypal

License

MIT. See LICENSE for more details.

About

🐳 Firefox Sync Server image based on Python Alpine Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 81.6%
  • Dockerfile 18.4%