1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
dockerfiles/nostream/docker-compose.yml
2023-02-07 16:15:56 +08:00

42 lines
952 B
YAML

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