add nostream

This commit is contained in:
kev 2023-02-07 16:15:56 +08:00
parent 6029db3d9f
commit a6a3f5bcaf
3 changed files with 59 additions and 0 deletions

View File

@ -407,6 +407,7 @@ A collection of delicious docker recipes.
- [x] outlinewiki/outline
- [x] gabekangas/owncast
- [x] owncloud
- [x] jorijn/nostream
- [x] chocobozzz/peertube
- [x] dpage/pgadmin4
- [x] viktorstrate/photoview

17
nostream/README.md Normal file
View File

@ -0,0 +1,17 @@
nostream
========
[Nostream][1] is a nostr relay, written in Typescript.
## Up and Running
```bash
$ mkdir -p data/{nostream,redis,postgres}
$ cd data/nostream
$ wget https://github.com/Cameri/nostream/raw/main/resources/default-settings.yaml -O settings.yaml
$ vim settings.yaml
$ docker-compose up -d
$ curl http://127.0.0.1:8008
```
[1]: https://github.com/Cameri/nostream

View File

@ -0,0 +1,41 @@
version: "3.8"
services:
nostream:
image: jorijn/nostream:v1.19.0
ports:
- "8008:8008"
volumes:
- ./data/nostream:/app/etc
environment:
- NOSTR_CONFIG_DIR=/app/etc
- RELAY_PORT=8008
- SECRET=hackme
- DB_URI=postgresql://nostream:nostream@postgres:5432/nostream
# REDIS_URI=redis://default:nostream@redis:6379
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_USER=default
- REDIS_PASSWORD=nostream
depends_on:
- redis
- postgres
restart: unless-stopped
redis:
image: redis:6-alpine
command: --save 900 1 --requirepass nostream
volumes:
- ./data/redis:/data
restart: unless-stopped
postgres:
image: postgres:14-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=nostream
- POSTGRES_PASSWORD=nostream
- POSTGRES_DB=nostream
restart: unless-stopped