mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-21 13:24:03 +01:00
This change removes the infinite transmission loop with sleep periods between each transmission. Now, a new transmission can start by a call to "tx_start" on the following two conditions: 1) As soon as the application starts (if there is a previously paid order waiting already). 2) As soon as the current transmission ends. The server will immediately look for the next order ready for transmission and start it if available. Meanwhile, the condition for ending the current transmission (i.e., for calling "tx_end(order)") is when all Tx confirmations are received from all regions.
60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
version: '3'
|
|
services:
|
|
blc:
|
|
image: "shesek/lightning-charge:0.4.23"
|
|
environment:
|
|
- API_TOKEN=mySecretToken
|
|
volumes:
|
|
- blc:/data
|
|
api-server:
|
|
build: server
|
|
depends_on:
|
|
- blc
|
|
links:
|
|
- blc
|
|
environment:
|
|
- CHARGE_ROOT=http://api-token:mySecretToken@blc:9112
|
|
- CALLBACK_URI_ROOT=http://localhost:9292
|
|
- CHARGE_API_TOKEN=mySecretToken
|
|
- ENV=development
|
|
- REDIS_URI=redis://redis:6379
|
|
volumes:
|
|
- data:/data
|
|
workers:
|
|
build: server
|
|
depends_on:
|
|
- api-server
|
|
- redis
|
|
links:
|
|
- redis
|
|
environment:
|
|
- REDIS_URI=redis://redis:6379
|
|
- ENV=development
|
|
volumes:
|
|
- data:/data
|
|
command: workers.sh
|
|
sse-server:
|
|
build:
|
|
context: sse/
|
|
depends_on:
|
|
- api-server
|
|
- redis
|
|
links:
|
|
- redis
|
|
environment:
|
|
- SUB_CHANNELS=transmissions
|
|
- REDIS_URI=redis://redis:6379
|
|
redis:
|
|
image: "redis:latest"
|
|
proxy_server:
|
|
image: proxy_server
|
|
build: nginx
|
|
depends_on:
|
|
- api-server
|
|
- sse-server
|
|
ports:
|
|
- 8080:80
|
|
|
|
volumes:
|
|
blc:
|
|
data:
|