* test(integration): add integration test support with basic messaging flow test * chore(): add docker-compose file with needed relays for integration tests
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
services:
|
|
setup:
|
|
image: busybox:latest
|
|
volumes:
|
|
- ./dev/data:/data
|
|
command: >
|
|
sh -c "
|
|
mkdir -p /data/nostr-rs-relay /data/strfry-db &&
|
|
chmod 755 /data/nostr-rs-relay /data/strfry-db &&
|
|
chown 1000:1000 /data/nostr-rs-relay &&
|
|
chmod 777 /data &&
|
|
echo 'Relay data directories created successfully'
|
|
"
|
|
|
|
nostr-rs-relay:
|
|
image: scsibug/nostr-rs-relay:latest
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- ./dev/data/nostr-rs-relay:/usr/src/app/db
|
|
- ./dev/nostr-rs-relay-config.toml:/usr/src/app/config.toml:ro
|
|
environment:
|
|
- RUST_LOG=debug
|
|
restart: unless-stopped
|
|
depends_on:
|
|
setup:
|
|
condition: service_completed_successfully
|
|
|
|
strfry-nostr-relay:
|
|
image: dockurr/strfry:latest
|
|
ports:
|
|
- "7777:7777"
|
|
volumes:
|
|
- ./dev/strfry.conf:/etc/strfry.conf:ro
|
|
- ./dev/data/strfry-db:/app/strfry-db
|
|
restart: unless-stopped
|
|
command: ["./strfry", "relay", "-v", "1"]
|
|
depends_on:
|
|
setup:
|
|
condition: service_completed_successfully
|