breve/compose.yaml

33 lines
922 B
YAML
Raw Normal View History

2025-02-07 21:58:53 +01:00
services:
server:
depends_on:
2025-02-07 22:02:55 +01:00
postgres:
condition: service_healthy
2025-02-07 21:58:53 +01:00
build:
context: .
target: final
2025-02-07 22:10:22 +01:00
environment:
RELAY_NAME: "Breve Relay"
RELAY_DESCRIPTION: "A configurable Nostr relay"
POSTGRES_URL: "postgres://postgres:postgres@postgres/postgres?sslmode=disable"
# RELAY_PUBKEY: optional, will use default if not set
# RELAY_ICON: optional, will use default if not set
# ALLOWED_KINDS: "0,1,20" # optional, will allow all kinds if not set
2025-02-07 21:58:53 +01:00
ports:
- 3334:3334
postgres:
image: postgres:17
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- ./postgres:/var/lib/postgresql/data
ports:
2025-02-07 22:02:55 +01:00
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s