33 lines
922 B
YAML
33 lines
922 B
YAML
services:
|
|
server:
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
build:
|
|
context: .
|
|
target: final
|
|
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
|
|
ports:
|
|
- 3334:3334
|
|
postgres:
|
|
image: postgres:17
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: postgres
|
|
volumes:
|
|
- ./postgres:/var/lib/postgresql/data
|
|
ports:
|
|
- 5432:5432
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s |