Files
nostr-webhost/docker-compose.yml
studiokaiji 6841ef94bb Add web server and relay configuration support
- Introduced a new Dockerfile for building the web server.
- Updated docker-compose.yml to include the web server service with environment variable support for relay URLs.
- Enhanced relay management in relays.go to read from environment variables.
- Updated main.go to provide descriptions for relay configuration in CLI commands.
2025-11-26 00:24:29 +09:00

39 lines
831 B
YAML

version: "3.9"
services:
relay:
image: "scsibug/nostr-rs-relay"
ports:
- "7001:8080"
volumes:
- ./nostr-rs-relay/data:/usr/src/app/db
- ./nostr-rs-relay/config.toml:/usr/src/app/config.toml
user: root
container_name: nostr-webhost-relay
networks:
- nostr-network
web_server:
build:
context: ./hostr
dockerfile: Dockerfile
ports:
- "3000:3000"
container_name: nostr-webhost-server
environment:
- RELAY_URLS=ws://relay:8080
depends_on:
- relay
volumes:
- ./hostr/data:/app/data
- hostr_config:/app/.config
restart: unless-stopped
networks:
- nostr-network
command: ["./hostr", "start", "--port", "3000", "--mode", "normal"]
networks:
nostr-network:
driver: bridge
volumes:
hostr_config: