update readme

This commit is contained in:
Görkem 2026-01-29 13:00:25 -08:00
parent 81c0d89ad4
commit f4fb98c7eb

View File

@ -16,7 +16,16 @@ OpenGuestbook is a self-hosted lightweight Guestbook for small static websites m
OpenGuestbook comes in two parts, a backend that needs to be hosted on a server, and a JS file that cn be embedded directly on your website. OpenGuestbook comes in two parts, a backend that needs to be hosted on a server, and a JS file that cn be embedded directly on your website.
### Backend deployment with Docker ### Backend deployment with Docker
For production, running via Docker Compose is recommended. For production, running via Docker Compose is recommended.
ssh in to your server and clone the repository:
```
git clone https://code.gorkyver.com/Gorkem/OpenGuestbook.git
```
get in directory and create docker-compose.yml:
```
cd OpenGuestbook
nano docker-compose.yml
```
Replace` <https://yourwebsite.com>` with your static website url and `<ntfy-topic>` with your [ntfy.sh topic](https://docs.ntfy.sh) to enable notificatons.
#### 1) Create docker-compose.yml #### 1) Create docker-compose.yml
```yaml ```yaml
version: '3.8' version: '3.8'
@ -28,11 +37,16 @@ services:
ports: ports:
- "5000:5000" - "5000:5000"
volumes: volumes:
- ./guestbook_data:/openguestbook/guestbook # Persist comments on host to make it easily reachable - ./guestbook_data:/OpenGuestbook/guestbook # Persist comments on host to make it easily reachable
environment: environment:
- FRONTEND_URL=<https://yourwebsite.com> # if a frontend url is not provided the app will default the allow all utl's which is not recommended! - FRONTEND_URL=<https://yourwebsite.com> # if a frontend url is not provided the app will default the allow all utl's which is not recommended!
- NTFY_TOPIC=<enter-ntfy-topic> # for psuh notification support (optional) - NTFY_TOPIC=<ntfy-topic> # for psuh notification support (optional)
``` ```
build & run container with:
```
docker compose up -d --build
```
and your guesbook server should be up and running on port 5000 on your machine!
## Dependencies ### Front-end Script
## Configuration -To-do