mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 20:21:35 +00:00
Fix dockerized frontend dev setup. Add example nodeapp docker-compose.
This commit is contained in:
parent
f00ece6073
commit
2fd4a0123e
35
nodeapp/docker-compose-dev.yml
Normal file
35
nodeapp/docker-compose-dev.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
version: '3.9'
|
||||||
|
services:
|
||||||
|
frontend:
|
||||||
|
build: ../frontend
|
||||||
|
container_name: npm-dev
|
||||||
|
restart: always
|
||||||
|
command: npm run dev
|
||||||
|
volumes:
|
||||||
|
- ../frontend:/usr/src/frontend
|
||||||
|
- ../mobile:/usr/src/mobile
|
||||||
|
|
||||||
|
nodeapp:
|
||||||
|
build: .
|
||||||
|
container_name: nodeapp-dev
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
TOR_PROXY_IP: 127.0.0.1
|
||||||
|
TOR_PROXY_PORT: 9050
|
||||||
|
ROBOSATS_ONION: robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion
|
||||||
|
network_mode: service:tor
|
||||||
|
volumes:
|
||||||
|
- ../frontend/static:/usr/src/robosats/static
|
||||||
|
|
||||||
|
tor:
|
||||||
|
build: ../docker/tor
|
||||||
|
container_name: tor-dev
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
LOCAL_USER_ID: 1000
|
||||||
|
LOCAL_GROUP_ID: 1000
|
||||||
|
volumes:
|
||||||
|
- ../node/tor/data:/var/lib/tor
|
||||||
|
- ../node/tor/config:/etc/tor
|
||||||
|
ports:
|
||||||
|
- 12596:12596
|
@ -1,34 +1,22 @@
|
|||||||
version: '3.9'
|
version: '3.9'
|
||||||
|
# Example deployment of a local robosats-client using
|
||||||
|
# 'latest' tag from docker-hub
|
||||||
services:
|
services:
|
||||||
frontend:
|
robosats:
|
||||||
build: ../frontend
|
image: recksato/robosats-client:latest
|
||||||
container_name: npm-dev
|
container_name: robosats
|
||||||
restart: always
|
|
||||||
command: npm run dev
|
|
||||||
volumes:
|
|
||||||
- ../frontend:/usr/src/frontend
|
|
||||||
|
|
||||||
nodeapp:
|
|
||||||
build: .
|
|
||||||
container_name: nodeapp-dev
|
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
TOR_PROXY_IP: 127.0.0.1
|
TOR_PROXY_IP: 127.0.0.1
|
||||||
TOR_PROXY_PORT: 9050
|
TOR_PROXY_PORT: 9050
|
||||||
ROBOSATS_ONION: robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion
|
ROBOSATS_ONION: robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion
|
||||||
network_mode: service:tor
|
network_mode: service:tor
|
||||||
volumes:
|
|
||||||
- ../frontend/static:/usr/src/robosats/static
|
|
||||||
|
|
||||||
tor:
|
tor:
|
||||||
build: ../docker/tor
|
build: ../docker/tor
|
||||||
container_name: tor-dev
|
container_name: tor
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
LOCAL_USER_ID: 1000
|
LOCAL_USER_ID: 1000
|
||||||
LOCAL_GROUP_ID: 1000
|
LOCAL_GROUP_ID: 1000
|
||||||
volumes:
|
|
||||||
- ../node/tor/data:/var/lib/tor
|
|
||||||
- ../node/tor/config:/etc/tor
|
|
||||||
ports:
|
ports:
|
||||||
- 12596:12596
|
- 12596:12596
|
6
setup.md
6
setup.md
@ -1,5 +1,5 @@
|
|||||||
# Set up
|
# Set up
|
||||||
*Attention: to use RoboSats you do not need to run the stack, simply visit the website and that's it! This setup guide is intended for developer contributors and platform operators.*
|
*Attention: to use RoboSats you do not need to run the stack, simply visit the website and that's it! This setup guide is intended for developer contributors and coordinator operators.*
|
||||||
|
|
||||||
# Frontend Development Only
|
# Frontend Development Only
|
||||||
Running the full stack is not easy, since RoboSats needs of many services. However, contributing to the frontend development can be done with a minimal setup!
|
Running the full stack is not easy, since RoboSats needs of many services. However, contributing to the frontend development can be done with a minimal setup!
|
||||||
@ -8,9 +8,9 @@ You can develop frontend-only features using the mainnet backend of the platform
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd nodeapp
|
cd nodeapp
|
||||||
docker-compose up
|
docker-compose -f docker-compose-dev.yml up
|
||||||
# Press Ctrl+C to exit the process
|
# Press Ctrl+C to exit the process
|
||||||
# Visit 127.0.0.1:12596
|
# Check out 127.0.0.1:12596 on your browser
|
||||||
```
|
```
|
||||||
|
|
||||||
You can edit the frontend code in `/frontend/src/` to make the changes you want. Within a few seconds, the `npm-dev` container process will pack the code into the local `main.js`. Visit `127.0.0.1:12596` and you will see your changes on the frontend.
|
You can edit the frontend code in `/frontend/src/` to make the changes you want. Within a few seconds, the `npm-dev` container process will pack the code into the local `main.js`. Visit `127.0.0.1:12596` and you will see your changes on the frontend.
|
||||||
|
Loading…
Reference in New Issue
Block a user