Skip to content

Commit

Permalink
Merge pull request #67 from bitcoin-sv/feat/595-update-start-sh
Browse files Browse the repository at this point in the history
feat(BUX-595) update start.sh after renaming
  • Loading branch information
dorzepowski authored Mar 4, 2024
2 parents f9c9e71 + 539bdc9 commit df15227
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 123 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ There are three ways of running this script:
you ran the script with flag `-h` or `--help`.

```bash
./start.sh -db postgresql -c redis -bs true -env development -b false
./start.sh -db postgresql -c redis -sw true -b false
```

3. With `-l/--load` flag. This option add possibility to use previously created `.env.config` file and run whole environment with simple command:
Expand Down
54 changes: 27 additions & 27 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,67 +2,66 @@
### !NOTE: This file is meant to be used by start.sh! ###
########################################################
services:
bux-wallet-frontend:
build:
context: .
dockerfile: ./release/Dockerfile
wallet-frontend:
image: bsvb/spv-wallet-web-frontend:latest
pull_policy: always
ports:
- "3002:80"
configs:
- source: frontend-env-config
target: /usr/share/nginx/html/env-config.json

bux-wallet-backend:
image: bsvb/bux-wallet-backend:latest
wallet-backend:
image: bsvb/spv-wallet-web-backend:latest
pull_policy: always
environment:
BUX_PAYMAIL_DOMAIN: '${RUN_PAYMAIL_DOMAIN}'
SPVWALLET_PAYMAIL_DOMAIN: '${RUN_PAYMAIL_DOMAIN}'
HTTP_SERVER_CORS_ALLOWEDDOMAINS: 'http://localhost:3002'
env_file:
- .env.config
ports:
- "8081:8080"
- "8180:8180"
links:
- bux-postgresql
- wallet-postgresql
depends_on:
bux-postgresql:
wallet-postgresql:
condition: service_healthy

pulse:
image: bsvb/pulse:latest
block-headers-service:
image: bsvb/block-headers-service:latest
pull_policy: always
command:
- "--preloaded"
ports:
- "8080:8080"
volumes:
- pulse-data:/app/data
- block-headers-service-data:/app/data

bux-server:
image: buxorg/bux-server:latest
spv-wallet:
image: bsvb/spv-wallet:latest
pull_policy: always
environment:
BUX_PAYMAIL_DOMAINS: '${RUN_PAYMAIL_DOMAIN}'
SPVWALLET_PAYMAIL_DOMAINS: '${RUN_PAYMAIL_DOMAIN}'
env_file:
- .env.config
ports:
- "3003:3003"
restart: always

bux-redis:
wallet-redis:
image: redis
hostname: redis
ports:
- "6379:6379"
volumes:
- bux-redis-data:/data
- wallet-redis-data:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]

bux-postgresql:
wallet-postgresql:
image: postgres
volumes:
- bux-postgresql-data:/var/lib/postgresql/data
- wallet-postgresql-data:/var/lib/postgresql/data
environment:
- POSTGRES_NAME=postgres
- POSTGRES_USER=postgres
Expand All @@ -74,7 +73,7 @@ services:
timeout: 5s
retries: 3

bux-mongodb:
wallet-mongodb:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: mongo
Expand All @@ -83,7 +82,7 @@ services:
ports:
- '27017:27017'
volumes:
- bux-mongodb-data:/data/db
- wallet-mongodb-data:/data/db
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh mongodb:27017/test --quiet
interval: 10s
Expand All @@ -92,19 +91,20 @@ services:
start_period: 40s

volumes:
bux-postgresql-data:
wallet-postgresql-data:
driver: local
bux-redis-data:
wallet-redis-data:
driver: local
bux-mongodb-data:
wallet-mongodb-data:
driver: local
pulse-data:
block-headers-service-data:
driver: local

configs:
frontend-env-config:
content: |
{
"paymailDomain": "${RUN_PAYMAIL_DOMAIN}",
"apiUrl": "http://localhost:8081"
"apiUrl": "http://localhost:8180",
"wsUrl": "ws://localhost:8180/api/websocket"
}
Loading

0 comments on commit df15227

Please sign in to comment.