A docker image containing spotweb hosted using nginx and php-fpm
10K+
A docker image containing spotweb hosted using nginx and php-fpm. Used the following image definitions as inspiration:
Source code: https://github.com/joachimbaten/spotweb-docker
A docker-compose is included to automatically start a postgresql database together with the spotweb application.
It will automatically initialize the database if needed, populate it with the provided admin user information and configure it for the requested system type. If the database is already configured it will not alter the admin user or system type anymore.
None of the existing images follow the version tagging of the spotweb repository (https://github.com/spotweb/). Also you often need to run it first without environment variables to be able to go through the installation wizard, and then shutdown and start again with the environment variables.
What this image adds is additional environment variables so you can configure Spotweb with all the information you supply during the install wizard. With exception of the newsserver settings. These need to be added using the settings once the application is up and running.
During startup it will check the status of the configured database and upgrade if needed, or initialize with the provided admin user and system type if it is the first run.
| Variable | Possible/Sample Values | Description |
|---|---|---|
| TZ | Europe/Brussels | The (PHP) timezone to use |
| SPOTWEB_SYSTEMTYPE | single | How will you run spotweb |
| SPOTWEB_USERNAME | myawesomeuser | The admin username |
| SPOTWEB_PASSWORD | ****** | The admin password |
| SPOTWEB_FIRSTNAME | demo | The admin his first name |
| SPOTWEB_LASTNAME | spotweb | The admin his last name |
| SPOTWEB_MAIL | [email protected] | The admin his email |
| SPOTWEB_RETRIEVE | 15min | The schedule on which to retrieve new spots |
| DB_ENGINE | pdo_pgsql | The database type to use |
| DB_HOST | db | The host adres of the database |
| DB_PORT | 5432 | The database port to use |
| DB_DATABASE | spotweb | The name of the database to use |
| DB_USER | spotweb | The database user to use |
| DB_PASSWORD | ******* | The databzase password to use for the provided user |
| DB_SCHEMA | public | The database schema to use for the tables inside the provided database |
Following system types are supported:
Single user (single)
Single user systems are one-user systems, not shared with friends or family members. Spotweb wil always be logged on using the below defined user and Spotweb will never ask for authentication.
Shared (shared)
Shared systems are Spotweb installations shared among friends or family members. You do have to logon using an useraccount, but the users who do log on are trusted to have no malicious intentions.
Public (public)
Public systems are Spotweb installations fully open to the public. Because the installation is fully open, regular users do not have all the features available in Spotweb to help defend against certain malicious users.
Following schedules are supported to configure the automatic spot retrieval:
This container supports 2 database types:
Content type
Image
Digest
sha256:5d354d583…
Size
83.3 MB
Last updated
almost 3 years ago
docker pull jbaten/spotweb