Docker Image for SourceBans++.
In order to run this container you'll need docker installed.
If you use Docker Compose there is an example docker-compose.yml file you can use for fast setup. Please pay attention to the INSTALL environment variable.
- Change settings including passwords in docker-compose.yml
- Set environment variable
INSTALLto true. - Run
docker-compose up. - Visit https://example.org/install and enter your database and admin credentials.
- Stop using
STRG+Cordocker-compose down. - Set environment variable
INSTALLto false. - Run
docker-compose upand visit your new Sourcebans installation.
See all available image tags here.
There are various different types of tags you can use if you automate your deployment.
- Tags like
:sb-1.7.0follow the tags of the Sourcebans repository. The image containing the latest Sourcebans release will be rebuild with updated packages regularly. There is a slight chance that they might break at some point. - The
sb-devtag contains the latest build directly from the Sourcebans repository. This can be considered very unstable. - Numbered tags like
:sb-5361142902will only be build once and therefore won't break later on. They will never receive any changes. - The semver tags, e.g.
:2.0.0follow the release tags on this Github repository. The latest release will be rebuild with updated packages regularly. But may ship outdated Sourcebans versions for a longer time. latestpoints to the latest tag on this Github repository.
INSTALL- If set to "true" this copies Sourcebans into the/var/www/htmldirectory and may override your manual changes. This should be set on first install and can be enabled for a convenient update. Always make a full backup before setting this to 'true'!SET_OWNER- If set to "true" the ownership of the/var/www/htmldirectory is recursively set to the webserver user and group. This only works as root.
/var/www/html/- Contains the Sourcebans installation
/usr/local/etc/php/conf.d/sourcebans.ini- The Sourcebans specific PHP configuration that overrides defaults
Always create a full backup of your installation before updating.
Change the Docker image tag and read below:
You can either update the SourceBans sources manually as described here or set the INSTALL environment variable to true which will update to the latest SourceBans++ version included in the release. In case you made manual changes to any of the following directories they will be overriden.
- /var/www/html/themes/default
- /var/www/html/updater
- /var/www/html/install
- /var/www/html/pages
- /var/www/html/includes
The image can be used fully rootless. But up to and including Sourcebans release 1.7.0 you will not be able to login when exposing a non-standard port.
- Initial work - Crinis
This project is licensed under the MIT License - see the LICENSE.md file for details. The image contains software that use different licenses.