mirror of
https://github.com/studiokaiji/nostr-webhost.git
synced 2025-12-16 22:34:26 +01:00
- 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.
39 lines
831 B
YAML
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:
|