Author SHA1 Message Date
Ian Renton 7dfcdb00e8 Merge branch 'main' into 2.0-pre
# Conflicts:
#	core/constants.py
#	templates/status.html
2026-08-05 20:34:26 +01:00
Ian Renton 5699627069 Docker config 2026-08-05 20:28:11 +01:00
Ian Renton 66081f32f9 Docker config 2026-08-05 20:24:10 +01:00
Ian Renton 4f8f748d88 Docker config 2026-08-05 20:14:30 +01:00
Ian Renton c2ecef1003 Release 1.4 2026-08-02 11:40:28 +01:00
11 changed files with 57 additions and 15 deletions
+7
View File
@@ -0,0 +1,7 @@
/.venv
__pycache__
*.pyc
/config.yml
/cache/
.git
.gitignore
+8
View File
@@ -0,0 +1,8 @@
FROM python:3.13-slim
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 8080
CMD ["python3", "spothole.py"]
+27
View File
@@ -173,6 +173,33 @@ http://localhost:8080` in the log, your server is good to go.
If you see some errors on startup, check your configuration, e.g. in case you have specified a port for the web server 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. 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).
With that in place, run `docker compose up` and you should be good to go. To detach, press `d` or run the command with
the `-d` flag.
### Multiple cluster nodes with different settings ### 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 Dan, S50U has written in with his Spothole cluster settings. He is using a cluster node which provides RBN spots, and
+1 -1
View File
@@ -76,7 +76,7 @@
</div> </div>
<script src="/static/js/add-spot.js?v=1785434214"></script> <script src="/static/js/add-spot.js?v=1785958091"></script>
<script>$(document).ready(function () { <script>$(document).ready(function () {
$("#nav-link-add-spot").addClass("active"); $("#nav-link-add-spot").addClass("active");
}); <!-- highlight active page in nav --></script> }); <!-- highlight active page in nav --></script>
+1 -1
View File
@@ -82,7 +82,7 @@
</div> </div>
<script src="/static/js/alerts.js?v=1785434213"></script> <script src="/static/js/alerts.js?v=1785958091"></script>
<script>$(document).ready(function () { <script>$(document).ready(function () {
$("#nav-link-alerts").addClass("active"); $("#nav-link-alerts").addClass("active");
}); <!-- highlight active page in nav --></script> }); <!-- highlight active page in nav --></script>
+2 -2
View File
@@ -82,8 +82,8 @@
<script> <script>
let spotProvidersEnabledByDefault = {% raw json_encode(web_ui_options["spot-providers-enabled-by-default"]) %}; let spotProvidersEnabledByDefault = {% raw json_encode(web_ui_options["spot-providers-enabled-by-default"]) %};
</script> </script>
<script src="/static/js/spotsbandsandmap.js?v=1785434214"></script> <script src="/static/js/spotsbandsandmap.js?v=1785958091"></script>
<script src="/static/js/bands.js?v=1785434214"></script> <script src="/static/js/bands.js?v=1785958091"></script>
<script>$(document).ready(function () { <script>$(document).ready(function () {
$("#nav-link-bands").addClass("active"); $("#nav-link-bands").addClass("active");
}); <!-- highlight active page in nav --></script> }); <!-- highlight active page in nav --></script>
+5 -5
View File
@@ -1,6 +1,6 @@
{% extends "skeleton.html" %} {% extends "skeleton.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/css/style.css?v=1785434213" type="text/css"> <link rel="stylesheet" href="/static/css/style.css?v=1785958091" type="text/css">
<link href="/static/vendor/css/bootstrap-5.3.8.min.css" rel="stylesheet"> <link href="/static/vendor/css/bootstrap-5.3.8.min.css" rel="stylesheet">
<link href="/static/vendor/css/fontawesome-6.7.2.min.css" rel="stylesheet"> <link href="/static/vendor/css/fontawesome-6.7.2.min.css" rel="stylesheet">
<link href="/static/vendor/css/solid-6.7.2.min.css" rel="stylesheet"> <link href="/static/vendor/css/solid-6.7.2.min.css" rel="stylesheet">
@@ -10,10 +10,10 @@
<script src="/static/vendor/js/bootstrap-5.3.8.bundle.min.js"></script> <script src="/static/vendor/js/bootstrap-5.3.8.bundle.min.js"></script>
<script src="/static/vendor/js/tinycolor2-1.6.0.min.js"></script> <script src="/static/vendor/js/tinycolor2-1.6.0.min.js"></script>
<script src="/static/js/utils.js?v=1785434213"></script> <script src="/static/js/utils.js?v=1785958091"></script>
<script src="/static/js/ui-ham.js?v=1785434213"></script> <script src="/static/js/ui-ham.js?v=1785958091"></script>
<script src="/static/js/geo.js?v=1785434213"></script> <script src="/static/js/geo.js?v=1785958091"></script>
<script src="/static/js/common.js?v=1785434213"></script> <script src="/static/js/common.js?v=1785958091"></script>
{% end %} {% end %}
{% block body %} {% block body %}
<div class="container"> <div class="container">
+1 -1
View File
@@ -284,7 +284,7 @@
</div> </div>
<script src="/static/vendor/js/chart-4.4.9.umd.min.js"></script> <script src="/static/vendor/js/chart-4.4.9.umd.min.js"></script>
<script src="/static/js/conditions.js?v=1785434213"></script> <script src="/static/js/conditions.js?v=1785958091"></script>
<script>$(document).ready(function () { <script>$(document).ready(function () {
$("#nav-link-conditions").addClass("active"); $("#nav-link-conditions").addClass("active");
}); <!-- highlight active page in nav --></script> }); <!-- highlight active page in nav --></script>
+2 -2
View File
@@ -115,8 +115,8 @@
<script> <script>
let spotProvidersEnabledByDefault = {% raw json_encode(web_ui_options["spot-providers-enabled-by-default"]) %}; let spotProvidersEnabledByDefault = {% raw json_encode(web_ui_options["spot-providers-enabled-by-default"]) %};
</script> </script>
<script src="/static/js/spotsbandsandmap.js?v=1785434213"></script> <script src="/static/js/spotsbandsandmap.js?v=1785958091"></script>
<script src="/static/js/map.js?v=1785434213"></script> <script src="/static/js/map.js?v=1785958091"></script>
<script>$(document).ready(function () { <script>$(document).ready(function () {
$("#nav-link-map").addClass("active"); $("#nav-link-map").addClass("active");
}); <!-- highlight active page in nav --></script> }); <!-- highlight active page in nav --></script>
+2 -2
View File
@@ -121,8 +121,8 @@
<script> <script>
let spotProvidersEnabledByDefault = {% raw json_encode(web_ui_options["spot-providers-enabled-by-default"]) %}; let spotProvidersEnabledByDefault = {% raw json_encode(web_ui_options["spot-providers-enabled-by-default"]) %};
</script> </script>
<script src="/static/js/spotsbandsandmap.js?v=1785434213"></script> <script src="/static/js/spotsbandsandmap.js?v=1785958091"></script>
<script src="/static/js/spots.js?v=1785434213"></script> <script src="/static/js/spots.js?v=1785958091"></script>
<script>$(document).ready(function () { <script>$(document).ready(function () {
$("#nav-link-spots").addClass("active"); $("#nav-link-spots").addClass("active");
}); <!-- highlight active page in nav --></script> }); <!-- highlight active page in nav --></script>
+1 -1
View File
@@ -81,7 +81,7 @@
</div> </div>
</div> </div>
<script src="/static/js/status.js?v=1785434213"></script> <script src="/static/js/status.js?v=1785958091"></script>
<script> <script>
$(document).ready(function () { $(document).ready(function () {
$("#nav-link-status").addClass("active"); $("#nav-link-status").addClass("active");