mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-07 23:51:21 +00:00
add nostream
This commit is contained in:
parent
6029db3d9f
commit
a6a3f5bcaf
@ -407,6 +407,7 @@ A collection of delicious docker recipes.
|
|||||||
- [x] outlinewiki/outline
|
- [x] outlinewiki/outline
|
||||||
- [x] gabekangas/owncast
|
- [x] gabekangas/owncast
|
||||||
- [x] owncloud
|
- [x] owncloud
|
||||||
|
- [x] jorijn/nostream
|
||||||
- [x] chocobozzz/peertube
|
- [x] chocobozzz/peertube
|
||||||
- [x] dpage/pgadmin4
|
- [x] dpage/pgadmin4
|
||||||
- [x] viktorstrate/photoview
|
- [x] viktorstrate/photoview
|
||||||
|
17
nostream/README.md
Normal file
17
nostream/README.md
Normal 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
|
41
nostream/docker-compose.yml
Normal file
41
nostream/docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user