Docker config

This commit is contained in:
Ian Renton
2026-08-05 20:14:30 +01:00
parent c2ecef1003
commit 4f8f748d88
11 changed files with 59 additions and 15 deletions
+29
View File
@@ -172,6 +172,35 @@ countries. This is normal, don't panic!
If you see some errors on startup, check your configuration, e.g. in case you have specified a port for the web server
that is already in use by something else.
### Running using Docker
Spothole comes with a Docker configuration to make it easy to run it in a containerised environment. To set it up using
Docker, the easiest way is to use a Docker Compose file. Create a new directory such as `/opt/docker/spothole` and
create a `compose.yaml` file inside it with the following contents:
```yaml
services:
spothole:
container_name: spothole
build:
context: https://git.ianrenton.com/ian/spothole.git#main
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./config.yml:/app/config.yml
- ./cache:/app/cache
```
Save the file. You will still need to create a copy of `config-example.yml` and name it `config.yml`, though with the
Docker setup nothing has actually been downloaded yet, so you will have to copy the example from the repository some
other way, e.g. [from the repo in a web browser](https://git.ianrenton.com/ian/spothole/src/branch/main/config-example.yml).
You will also need to create the `cache` subdirectory manually, as Spothole cannot create it itself when running in the
container.
With that in place, run `docker compose up -d` and you should be good to go.
### Multiple cluster nodes with different settings
Dan, S50U has written in with his Spothole cluster settings. He is using a cluster node which provides RBN spots, and