mirror of
https://github.com/Reckless-Satoshi/robosats.git
synced 2024-08-16 15:20:55 +03:00
Fit for daphne + gunicorn. Docker default command runs dev node.
This commit is contained in:
parent
7284fb3480
commit
4a16f7debd
@ -23,7 +23,7 @@ HOST_NAME = ''
|
||||
ONION_LOCATION = ''
|
||||
|
||||
# Link to robosats mainnet/testnet (shown on frontend in statsfornerds so users can switch mainnet/testnet)
|
||||
THE_OTHER_ROBOSATS = 'robosats-testnet/mainnet.onion'
|
||||
THE_OTHER_ROBOSATS = 'testnet/mainnet.onion'
|
||||
|
||||
# Lightning node open info, url to amboss and 1ML
|
||||
AMBOSS = ''
|
||||
|
@ -30,4 +30,4 @@ RUN sed -i 's/^import .*_pb2 as/from . \0/' api/lightning/invoices_pb2_grpc.py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["gunicorn", "--bind", ":8000", "robosats.wsgi:application"]
|
||||
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000]
|
@ -1,7 +1,7 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
redis:
|
||||
image: sickp/alpine-redis:3.2.2
|
||||
image: redis:6.2.6
|
||||
container_name: redis
|
||||
restart: always
|
||||
volumes:
|
||||
@ -22,7 +22,6 @@ services:
|
||||
- .:/usr/src/robosats
|
||||
- /mnt/development/database:/usr/src/database
|
||||
- /mnt/development/lnd:/lnd
|
||||
command: python3 manage.py runserver 0.0.0.0:8000
|
||||
network_mode: service:tor
|
||||
|
||||
frontend:
|
||||
@ -57,7 +56,7 @@ services:
|
||||
|
||||
celery:
|
||||
build: .
|
||||
container_name: cbeat-dev
|
||||
container_name: cele-dev
|
||||
restart: always
|
||||
command: celery -A robosats worker --beat -l info -S django
|
||||
environment:
|
||||
|
@ -55,24 +55,25 @@ export default class OrderPage extends Component {
|
||||
|
||||
// Refresh delays according to Order status
|
||||
this.statusToDelay = {
|
||||
"0": 2000, //'Waiting for maker bond'
|
||||
"1": 25000, //'Public'
|
||||
"2": 9999999, //'Deleted'
|
||||
"3": 2000, //'Waiting for taker bond'
|
||||
"4": 9999999, //'Cancelled'
|
||||
"5": 999999, //'Expired'
|
||||
"6": 3000, //'Waiting for trade collateral and buyer invoice'
|
||||
"7": 3000, //'Waiting only for seller trade collateral'
|
||||
"0": 2000, //'Waiting for maker bond'
|
||||
"1": 25000, //'Public'
|
||||
"2": 999999, //'Deleted'
|
||||
"3": 2000, //'Waiting for taker bond'
|
||||
"4": 999999, //'Cancelled'
|
||||
"5": 999999, //'Expired'
|
||||
"6": 3000, //'Waiting for trade collateral and buyer invoice'
|
||||
"7": 3000, //'Waiting only for seller trade collateral'
|
||||
"8": 8000, //'Waiting only for buyer invoice'
|
||||
"9": 10000, //'Sending fiat - In chatroom'
|
||||
"10": 10000, //'Fiat sent - In chatroom'
|
||||
"11": 30000, //'In dispute'
|
||||
"12": 9999999, //'Collaboratively cancelled'
|
||||
"13": 3000, //'Sending satoshis to buyer'
|
||||
"14": 9999999, //'Sucessful trade'
|
||||
"15": 10000, //'Failed lightning network routing'
|
||||
"16": 9999999, //'Maker lost dispute'
|
||||
"17": 9999999, //'Taker lost dispute'
|
||||
"9": 10000, //'Sending fiat - In chatroom'
|
||||
"10": 10000, //'Fiat sent - In chatroom'
|
||||
"11": 30000, //'In dispute'
|
||||
"12": 999999, //'Collaboratively cancelled'
|
||||
"13": 3000, //'Sending satoshis to buyer'
|
||||
"14": 999999, //'Sucessful trade'
|
||||
"15": 10000, //'Failed lightning network routing'
|
||||
"16": 180000, //'Wait for dispute resolution'
|
||||
"17": 180000, //'Maker lost dispute'
|
||||
"18": 180000, //'Taker lost dispute'
|
||||
}
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -8,9 +8,11 @@ https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/
|
||||
"""
|
||||
|
||||
import os
|
||||
import django
|
||||
from channels.routing import get_default_application
|
||||
|
||||
from django.core.asgi import get_asgi_application
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tabulator.settings')
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'robosats.settings')
|
||||
django.setup()
|
||||
|
||||
application = get_asgi_application()
|
||||
application = get_default_application()
|
||||
|
3
setup.md
3
setup.md
@ -20,6 +20,9 @@ Then monitor in a terminal the Django dev docker service
|
||||
And the NPM dev docker service
|
||||
`docker attach npm-dev`
|
||||
|
||||
You could also just check all services logs
|
||||
`docker-compose logs -f`
|
||||
|
||||
Ready to roll! But maybe you also are interested on these:
|
||||
|
||||
Unlock or 'create' the lnd node
|
||||
|
Loading…
Reference in New Issue
Block a user