add restart unless stopped for docker compose container

This commit is contained in:
mr0x50 2025-02-23 20:19:26 +01:00
parent bddbafa125
commit b895c585a4

View File

@ -12,6 +12,7 @@ services:
RELAY_NAME: "Scrapestr Relay"
RELAY_DESCRIPTION: "A scrapestr Nostr relay"
POSTGRES_URL: "postgres://postgres:postgres@postgres/postgres?sslmode=disable"
restart: unless-stopped
scraper:
depends_on:
- relay
@ -21,6 +22,7 @@ services:
INPUT_RELAY: "wss://relay.nostr.band"
OUTPUT_RELAY: "ws://relay:3334"
KINDS: "[0,1,2,3,7,20]"
restart: unless-stopped
postgres:
image: postgres:17
environment:
@ -37,6 +39,7 @@ services:
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
pg_admin:
image: dpage/pgadmin4
environment:
@ -45,4 +48,5 @@ services:
ports:
- 8080:80
depends_on:
- postgres
- postgres
restart: unless-stopped