Mozilla Sync server image for Docker. For use with Docker
All suggestions and contributions are very welcome. There is a room for improvements, so please feel free to open issues and pull requests to help improve these images.
This image configures a very light sync server that stores data in a sqlite db and uses the built-in server. As stated on the server's documentation page:
it does not really support a lot of load
You will almost certainly want to configure another database and / or serve the content with gunicorn. I plan to add instructions and configuration files to achieve that with this docker image.
$ git clone [email protected]:spiroid/docker-mozilla-syncserver.git
$ cd docker-mozilla-syncserver
This builds two docker elements :
- One image with the latest version of the sync server in standalone mode
- A data volume container to persist data between different containers (sqlite db)
- Build the syncserver image
Replace <your pseudo>
by a prefix you want to appear in your local docker image registry.
$ docker build -t <your pseudo>/syncserver ./syncserver
- Run
$ docker run -v /data --name syncserverdata busybox
$ docker run -d -p 5000:5000 --volumes-from syncserverdata --name syncserver <your pseudo>/syncserver
With fig
Follow the instructions as described on the fig documentation page
My favorite install method: $ sudo pip install -U fig
.
Then, getting the container to build and run becomes be as easy as:
$ fig up
See LICENSE file.