Staytus can be installed/run using Docker. Please be aware that Docker support is not officially supported by me as I have no direct experience using it and relies on others to provide appropriate pull requests in order to maintain compatibility. In an ideal world, Docker would be moved out of this repository entirely and maintained by someone with the appropriate experience.
- Install Docker locally
- Run
docker run -d -p 0.0.0.0:80:5000 --name=staytus adamcooke/staytus
- Go to http://localhost:80 and follow the instructions to configure Staytus
This will pull and start the latest published Staytus Docker image, and start it listening on port 80 on the host machine.
Note that this container includes two persistent volumes, one for the database (persisting all config and state) and one for persistent DB config.
When a new Staytus Docker image is published that you'd like to upgrade to:
- Stop your current Staytus container with
docker stop staytus
- Rename your previous container with
docker rename staytus staytus-old
- Start a new container, reusing your previous volumes, with
docker run -d -p 0.0.0.0:80:5000 --name=staytus --volumes-from=staytus-old adamcooke/staytus
- Delete the old container with
docker rm staytus-old
This will automatically migrate your DB to pick up any new changes, and bring in any new code changes from the Staytus code.