feat: sample docker compose
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
HOST=example.com
|
||||
TOKEN=secret
|
||||
PORT=443
|
||||
@@ -1,3 +1,6 @@
|
||||
.venv
|
||||
.vscode
|
||||
.ruff_cache
|
||||
docker-compose.yml
|
||||
.env
|
||||
letsencrypt
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user