Add README.md

This commit is contained in:
Paul Mathieu 2022-07-12 12:23:31 +02:00
parent 640edb66af
commit f9a52d74b2

36
README.md Normal file
View File

@ -0,0 +1,36 @@
zetikettes
==========
ouaich.
Initial setup
-------------
```
docker build -t zetikettes .
```
Nginx is configured to:
- redirect /zetikettes/srv/ to localhost:8000
- redirect /zetikettes/ to /var/lib/zetikettes/static
Conf is in /etc/nginx/sites-available/default
Run
---
```
docker run -d --rm -p 8000:8000 -v /var/lib/zetikettes/templates:/data zetikettes
```
Change available templates
--------------------------
1. make or update templates
1. add them to tempaltes/
1. update static/zetikettes.js
1. git commit && git push
1. update /var/lib/zetikettes
1. no need to restart the container (magic!)
2. profit.