added compose templates to docs

This commit is contained in:
BroodjeAap 2023-01-06 11:28:33 +00:00
parent 17b7c6850e
commit 98d2ff2a0a
8 changed files with 60 additions and 9 deletions

View file

@ -231,6 +231,12 @@ services:
Change the `Host` label to the correct ip/hostname and generate a user/password string with [htpasswd](https://httpd.apache.org/docs/2.4/programs/htpasswd.html) for the `basicauth.users` label, note that the `$` character is escaped with `$$`
### Compose templates
There are a few docker-compose templates in the [docs/compose](docs/compose/) directory that can downloaded and used as starting points.
For example, if you want to set up GoWatch with Browserless, Apprise and a PostgreSQL database backend:
`wget https://raw.githubusercontent.com/broodjeaap/go-watch/master/docs/compose/apprise-browserless-postgresql.yml -O ./docker-compose.yml`
# Filters
GoWatch comes with many filters that should, hopefully, be enough to allow for most use cases.

View file

@ -0,0 +1,36 @@
version: "3"
services:
app:
build:
context: .
dockerfile: Dockerfile
target: base
container_name: go-watch
environment:
- GOWATCH_BROWSERLESS_URL=http://browserless:3000/content
volumes:
- /host/path/to/config:/config
ports:
- "8080:8080"
depends_on:
db:
condition: service_healthy
db:
image: postgres:15
environment:
- POSTGRES_USER=gorm
- POSTGRES_PASSWORD=gorm
- POSTGRES_DB=gorm
volumes:
- /host/path/to/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
apprise:
image: caronc/apprise:latest
browserless:
image: browserless/chrome:latest

View file

@ -0,0 +1,17 @@
version: "3"
services:
app:
build:
context: .
dockerfile: Dockerfile
target: base
container_name: go-watch
environment:
- GOWATCH_BROWSERLESS_URL=http://browserless:3000/content
volumes:
- /host/path/to/config:/config
ports:
- "8080:8080"
browserless:
image: browserless/chrome:latest

10
todo.md
View file

@ -1,11 +1,3 @@
# Todo
- comments
- add compose templates for:
- sqlite
- sqlite+apprise
- sqlite+apprise+browserless
- postgresql
- postgresql+apprise
- postgresql+apprise+browserless
- add kube yaml example?
- organize docs?
- add kube yaml example?