fix(rpi): Updating containers for RPi

This commit is contained in:
Chris Troutner
2022-07-08 15:44:30 -07:00
parent 3690b749fe
commit 7cae06dd65
7 changed files with 21 additions and 16 deletions
+4 -1
View File
@@ -6953,6 +6953,8 @@
}, },
"node_modules/headless": { "node_modules/headless": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://github.com/paulkernfeld/node-headless/tarball/master",
"integrity": "sha512-Y+OAUntNS8dvU9cX0NHuTegMu7sDbd9KbPHF/pe9YO64UvuSE14AEKmMqzRqywQx83a3Y23inqC6iDvAd6PIYA==",
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"engines": { "engines": {
@@ -24200,7 +24202,8 @@
} }
}, },
"headless": { "headless": {
"version": "1.1.0", "version": "https://github.com/paulkernfeld/node-headless/tarball/master",
"integrity": "sha512-Y+OAUntNS8dvU9cX0NHuTegMu7sDbd9KbPHF/pe9YO64UvuSE14AEKmMqzRqywQx83a3Y23inqC6iDvAd6PIYA==",
"optional": true "optional": true
}, },
"hmac-drbg": { "hmac-drbg": {
+1 -1
View File
@@ -72,7 +72,7 @@ RUN npm run docs
#EXPOSE 5010 #EXPOSE 5010
# Start the application. # Start the application.
COPY start-production.sh start-production.sh #COPY start-production.sh start-production.sh
CMD ["./start-production.sh"] CMD ["./start-production.sh"]
#CMD ["npm", "start"] #CMD ["npm", "start"]
@@ -24,7 +24,7 @@ export DBURL=mongodb://172.17.0.1:5666/bch-swap-service-prod
export PORT=5700 export PORT=5700
# bch-dex specific env vars # bch-dex specific env vars
export BCH_ENV=production export BCH_DEX=production
export WEBHOOKSERVICE=http://172.17.0.1:5667/webhook export WEBHOOKSERVICE=http://172.17.0.1:5667/webhook
export WEBHOOKTARGET=http://172.17.0.1:5700/p2wdb export WEBHOOKTARGET=http://172.17.0.1:5700/p2wdb
export APP_ID=bch-dex-test557 export APP_ID=bch-dex-test557
+12 -10
View File
@@ -3,9 +3,9 @@
version: '3.9' version: '3.9'
services: services:
mongo-p2wdb-service: mongo-bch-dex:
image: mongo:4.4 image: mongo:4.2.0
container_name: mongo-p2wdb-service container_name: mongo-bch-dex
ports: ports:
- '5666:27017' # <host port>:<container port> - '5666:27017' # <host port>:<container port>
volumes: volumes:
@@ -14,7 +14,7 @@ services:
restart: always restart: always
ipfs: ipfs:
#image: ipfs/go-ipfs:v0.12.0 #image: ipfs/go-ipfs:v0.13.0
image: odanado/go-ipfs:v0.11.0 image: odanado/go-ipfs:v0.11.0
container_name: ipfs container_name: ipfs
environment: environment:
@@ -31,7 +31,7 @@ services:
- 172.17.0.1:8080:8080 - 172.17.0.1:8080:8080
volumes: volumes:
- ../data/go-ipfs/data:/data/ipfs - ../data/go-ipfs/data:/data/ipfs
- ../../swarm.key:/data/ipfs/swarm.key # - ../../swarm.key:/data/ipfs/swarm.key
# https://docs.docker.com/compose/compose-file/compose-file-v3/#command # https://docs.docker.com/compose/compose-file/compose-file-v3/#command
# https://github.com/ipfs/go-ipfs/blob/91c52657166bcf86f2476926e4fe56694dc26562/Dockerfile#L115 # https://github.com/ipfs/go-ipfs/blob/91c52657166bcf86f2476926e4fe56694dc26562/Dockerfile#L115
command: command:
@@ -47,7 +47,7 @@ services:
#build: #build:
# context: ./p2wdb/ # context: ./p2wdb/
# dockerfile: Dockerfile # dockerfile: Dockerfile
image: christroutner/pwd-bch-dex-rpi:v1.7.1 image: christroutner/p2wdb-rpi-v3.0.6
container_name: p2wdb container_name: p2wdb
environment: environment:
CONSUMER_URL: 'https://free-bch.fullstack.cash' CONSUMER_URL: 'https://free-bch.fullstack.cash'
@@ -59,7 +59,7 @@ services:
max-file: '10' max-file: '10'
mem_limit: 1gb mem_limit: 1gb
links: links:
- mongo-p2wdb-service - mongo-bch-dex
ports: ports:
# <host port>:<container port> # <host port>:<container port>
- 5667:5667 # REST API - 5667:5667 # REST API
@@ -67,13 +67,14 @@ services:
#- 5669:5669 # IPFS WS Port #- 5669:5669 # IPFS WS Port
volumes: volumes:
- ../data/ipfsdata/p2wdb:/home/safeuser/ipfs-p2wdb-service/.ipfsdata/p2wdb - ../data/ipfsdata/p2wdb:/home/safeuser/ipfs-p2wdb-service/.ipfsdata/p2wdb
- ./p2wdb/start-production.sh:/home/safeuser/ipfs-p2wdb-service/start-production.sh
restart: always restart: always
bch-dex: bch-dex:
#build: #build:
# context: ./bch-dex/ # context: ./bch-dex/
# dockerfile: Dockerfile # dockerfile: Dockerfile
image: christroutner/bch-dex-rpi:v1.7.1 image: christroutner/bch-dex-rpi:v1.8.2
container_name: bch-dex container_name: bch-dex
environment: environment:
CONSUMER_URL: 'https://free-bch.fullstack.cash' CONSUMER_URL: 'https://free-bch.fullstack.cash'
@@ -84,19 +85,20 @@ services:
max-file: '10' max-file: '10'
mem_limit: 1000mb mem_limit: 1000mb
links: links:
- mongo-p2wdb-service - mongo-bch-dex
- p2wdb - p2wdb
ports: ports:
- '5700:5700' # <host port>:<container port> - '5700:5700' # <host port>:<container port>
volumes: volumes:
- ../scripts/wallet.json:/home/safeuser/bch-dex/wallet.json - ../scripts/wallet.json:/home/safeuser/bch-dex/wallet.json
- ./bch-dex/start-production.sh:/home/safeuser/bch-dex/start-production.sh
restart: always restart: always
dex-ui: dex-ui:
#build: #build:
# context: ./bch-dex-ui/ # context: ./bch-dex-ui/
# dockerfile: Dockerfile # dockerfile: Dockerfile
image: christroutner/bch-dex-ui-rpi:v1.7.3 image: christroutner/bch-dex-ui-rpi:v1.7.4
container_name: dex-ui container_name: dex-ui
logging: logging:
driver: 'json-file' driver: 'json-file'
+1 -1
View File
@@ -61,7 +61,7 @@ RUN npm run docs
#EXPOSE 5010 #EXPOSE 5010
# Start the application. # Start the application.
COPY start-production.sh start-production.sh #COPY start-production.sh start-production.sh
CMD ["./start-production.sh"] CMD ["./start-production.sh"]
#CMD ["npm", "start"] #CMD ["npm", "start"]
@@ -42,6 +42,6 @@ export IPFS_API_PORT=5001
export IPFS_TCP_PORT=4001 export IPFS_TCP_PORT=4001
# P2WDB specific env vars # P2WDB specific env vars
export ORBITDB_NAME=/orbitdb/zdpuAm4fPafpjs5mgbBUJV8Az7kd8Xj1ttD6M1JaAxF8RMRrw/psf-bch-p2wdb-keyvalue-v1.0.0-0004 export ORBITDB_NAME=/orbitdb/zdpuAqNiwLiJBfbRK7uihV2hAbNSXj78ufzv5VyQb8GuvRwDh/psf-bch-p2wdb-keyvalue-v3.0.0-0001
npm start npm start
+1 -1
View File
@@ -74,7 +74,7 @@ async function sweepNfts () {
// Wait for indexers to update. // Wait for indexers to update.
console.log('Waiting for indexers to update...') console.log('Waiting for indexers to update...')
await bchjs.Util.sleep(20000) await bchjs.Util.sleep(120000)
// Send NFT to root address. // Send NFT to root address.
const receiver2 = [{ const receiver2 = [{