# Musiquay lab: a networked relay + Blossom host + Cashu mint + buyer. # # docker compose -f docker-compose.musiquay-lab.yml up --build \ # --abort-on-container-exit --exit-code-from lab # # The lab container publishes a priced track, checks 401/402, mints real ecash # from the mint, sends an order over NIP-59, runs the seller service in-process, # receives the signed deed, downloads with a 22243 proof, and verifies the # receipt. # # The keys below are test-only. Never use them outside this lab. name: musiquay-lab services: mint: build: context: ../gonuts dockerfile: Dockerfile # The mint's main() requires a .env file to exist even when every setting # comes from the environment. entrypoint: ["/bin/sh", "-c"] command: ["touch /.env && exec /main"] environment: - LIGHTNING_BACKEND=FAKEBACKEND - MINT_PORT=3338 - MINT_DB_PATH=/data/mint - MINT_NAME=Musiquay Lab Mint - INPUT_FEE_PPK=0 - LOG=info volumes: - mint-data:/data healthcheck: test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://localhost:3338/v1/keys"] interval: 3s timeout: 3s retries: 40 relay: build: context: . dockerfile: Dockerfile command: ["relay"] environment: - ORLY_PORT=3334 - ORLY_DATA_DIR=/data - ORLY_LOG_LEVEL=info - ORLY_BLOSSOM_ENABLED=true - ORLY_AUTH_REQUIRED=false # The gate and receipts are opt-in. - ORLY_MUSIQUAY_HOST=relay:3334 - ORLY_MUSIQUAY_KEY_DIR=/data/keys volumes: - relay-data:/data ports: - "13334:3334" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3334/"] interval: 3s timeout: 3s retries: 40 lab: build: context: . dockerfile: Dockerfile depends_on: relay: condition: service_healthy mint: condition: service_healthy restart: "no" entrypoint: ["/app/orly"] command: - conformance - lab - --relay=ws://relay:3334 - --blossom=http://relay:3334/blossom - --mint=http://mint:3338 - --seller-nsec=1111111111111111111111111111111111111111111111111111111111111111 - --buyer-nsec=2222222222222222222222222222222222222222222222222222222222222222 - --price=5 - --server=relay:3334 - --timeout=120s volumes: mint-data: relay-data: