If you provisionned with "ghostbin" before you need to:
rename every "ghostbin" folder by "spectre-updated" from now on, it mean if you data folder is "/var/data/ghostbin" you should rename it: "/var/data/spectre-updated"
This is a repository I've created in order to have a Docker image for running Spectre/Ghostbin in a private server.
It allows you to run it in your own computer, internally in your company, or host it in a public server.
The Spectre/Ghostbin project is also Open Source, but due to its hard setup, I thought that creating a Dockerfile and a Docker image would be helpful for people like me who want to host it on their own hardware.
In order for expiration, encryption and syntax highlighting to work, you need to be using Docker in a Linux system.
This is due to a difference in the internal Filesystem Docker for Linux uses: The FS driver used on Docker for macOS and Docker for Windows does not support the use of xattrs (extended attributes: saving metadata for a file in the filesystem), and Spectre relies on those attributes for saving the paste properties, such as the language, the encryption password and the expiration (if any of those is set).
So, you will need to run it on a host using Docker for Linux in order for them to work.
As the master branch of the Spectre project (link to the latest master commit at the time of writing this readme) is not stable right now (it has mixed namespaces and is in the middle of a refactor), this Dockerfile uses the latest commit in the stable branch, so it will probably not be running the exact same Spectre version the production server is running.
I spoke to the author and he told me he is working in making it stable, so in the future this image should adapt to the latest version.
In order to run the image, you need to know three things:
Ports: This image exposes the 8619 port for serving the Spectre site.
Logs volume: This image exposes a logs volume, so you are able to read the logs that Spectre outputs. The path inside the container will be /logs
Data volume: This image exposes a data volume, so you are able to access and persist things like pastes, session keys and accounts through containers (and survive restarts).
So, a way to run this container exposing all 3 things would be:
It would expose the 8619 port of the host machine, mount the logs volume at the local path /var/log/spectre-updated and mount the data volume at the local path /var/data/spectre-updated. You can adapt it to any use you need.