aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-02 15:43:51 -0700
committerGitHub <[email protected]>2024-10-02 15:43:51 -0700
commit6b472c3b8ffc07d258c1e98842fe07819ced2b4c (patch)
tree4fe8266ebc18edf9945323e8aed20453b8199cf3
parent0b5490845192768c5fe47610e24c41a80561e822 (diff)
parent091253441cb06ae75ddaceb5a3efa2376526328e (diff)
downloadcoinos-server-6b472c3b8ffc07d258c1e98842fe07819ced2b4c.tar.gz
coinos-server-6b472c3b8ffc07d258c1e98842fe07819ced2b4c.zip
Merge pull request #67 from ndungudedan/master
Initial server setup fixes
-rw-r--r--.gitignore1
-rw-r--r--compose.yml.sample15
-rw-r--r--config.ts.sample2
-rwxr-xr-xsetup.sh3
4 files changed, 17 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index f4b1ed6a..ec037f4c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@ watcher.sh
routes/**/*.js
lib/**/*.js
watcher.log
+.history/ \ No newline at end of file
diff --git a/compose.yml.sample b/compose.yml.sample
index c29d1654..7e24f0c2 100644
--- a/compose.yml.sample
+++ b/compose.yml.sample
@@ -104,7 +104,7 @@ services:
- MINT_CLNREST_COINOS_JWT=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVjYTM0YWU4LTdiMTItNDU4OS04ODMyLTUyMTNjOWVhMjc5NyIsImlhdCI6MTcyNDA0NjI3OH0.bdX1YLnpgqpjmjrkCdIdDbdmZUdViNSVrAJ0OX3ByPo
command: ["poetry", "run", "mint"]
volumes:
- - "/home/adam/nutshell:/app"
+ - "./data/nutshell:/app"
- "./data/mint:/app/data/mint"
mintb:
image: asoltys/nutshell
@@ -123,6 +123,17 @@ services:
- MINT_CLNREST_COINOS_JWT=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVjYTM0YWU4LTdiMTItNDU4OS04ODMyLTUyMTNjOWVhMjc5NyIsImlhdCI6MTcyNDA0NjI3OH0.bdX1YLnpgqpjmjrkCdIdDbdmZUdViNSVrAJ0OX3ByPo
command: ["poetry", "run", "mint"]
volumes:
- - "/home/adam/nutshell:/app"
+ - "./data/nutshell:/app"
- "./data/mint:/app/data/mint"
+ wallet:
+ image: asoltys/nutshell
+ container_name: wallet
+ ports:
+ - "4448:4448"
+ depends_on:
+ - mint
+ environment:
+ - MINT_URL=http://mint:3338
+ - API_HOST=0.0.0.0
+ command: ["poetry", "run", "cashu", "-d"] \ No newline at end of file
diff --git a/config.ts.sample b/config.ts.sample
index 537030d2..299b04ca 100644
--- a/config.ts.sample
+++ b/config.ts.sample
@@ -28,7 +28,7 @@ export default {
port: 7040,
btc: "5ac9f65c0efcc4775e0baec4ec03abdde22473cd3cf33c0419ca290e0751b225"
},
- lightning: "/home/bun/app/data/lightning/regtest/lightning-rpc"
+ lightning: "/home/bun/app/data/lightning/regtest/lightning-rpc",
fee: 0.001,
adminpass: "pwa",
support: "[email protected]",
diff --git a/setup.sh b/setup.sh
index 07bd2c36..8c19b8eb 100755
--- a/setup.sh
+++ b/setup.sh
@@ -3,7 +3,8 @@ cp compose.yml.sample compose.yml
cp -r sampledata data
sudo chown 100:100 data/nostr/data
docker compose up -d
-docker run -it -v $(pwd):/app --entrypoint bun asoltys/coinos-server i
+docker run -it -v $(pwd):/home/bun/app --entrypoint bun asoltys/coinos-server i
docker exec -it bc bitcoin-cli createwallet coinos
docker exec -it bc bitcoin-cli rescanblockchain
docker exec -it bc bitcoin-cli generatetoaddress 500 $(docker exec -it bc bitcoin-cli getnewaddress "" "p2sh-segwit")
+docker exec -it lq elements-cli createwallet coinos