feat: sample docker compose

This commit is contained in:
2026-04-14 00:07:27 +02:00
parent 70f8244199
commit ec21aead67
4 changed files with 23 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
HOST=example.com
TOKEN=secret
PORT=443
+3
View File
@@ -1,3 +1,6 @@
.venv
.vscode
.ruff_cache
docker-compose.yml
.env
letsencrypt
+1 -1
View File
@@ -102,7 +102,7 @@ curl -X DELETE \
- [x] [http.server security](https://docs.python.org/3/library/http.server.html#http-server-security)
- [ ] launch separate upgrade 80->443 server when https
- [ ] token management with "generate" command and bind path to specific token
- [ ] docker compose example + .env
- [x] docker compose example + .env
- [ ] proper doc
### Makefile targets
+15
View File
@@ -0,0 +1,15 @@
name: stapler
services:
stapler:
build: .
restart: unless-stopped
ports:
- "${PORT}:8080"
volumes:
- "./data:/data"
- "./letsencrypt:/etc/letsencrypt"
environment:
- HOST=${HOST}
- TOKEN=${TOKEN}
command: run