aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerrick Schwabe <[email protected]>2022-03-24 14:19:47 -0600
committerDerrick Schwabe <[email protected]>2022-03-24 14:19:47 -0600
commitb1c20e9e4c70f7ec9f42e932844232864613db8b (patch)
tree1c47db9a9b4822192c7a19bd938ddb7a25b2d871
parent4627741a86a2f66680da019c712e1ed79619ea55 (diff)
downloadcoinos-server-b1c20e9e4c70f7ec9f42e932844232864613db8b.tar.gz
coinos-server-b1c20e9e4c70f7ec9f42e932844232864613db8b.zip
Do not mount /app dir to container for staging, only logs and config,
brief README update and also update to staging-build WIP Doc
-rw-r--r--README.md3
-rw-r--r--doc/staging-build.md4
-rw-r--r--docker-compose.staging.yml5
-rw-r--r--docker-compose.yml1
4 files changed, 9 insertions, 4 deletions
diff --git a/README.md b/README.md
index f6561965..7445844d 100644
--- a/README.md
+++ b/README.md
@@ -15,10 +15,13 @@ This repository contains the code for the backend API server which is implemente
### Getting Started
+The following steps will churn out a quasi staging build; this configuration will run regtest and not a mainnet server.
+
```bash
git clone https://github.com/coinos/coinos-server
cd coinos-server
cp -rf sampleconfig ./config
+cp config/nginx/default.conf.template config/nginx/default.conf
cp .env.sample .env
cp fx.sample fx
docker network create net
diff --git a/doc/staging-build.md b/doc/staging-build.md
index e0a0cfce..294dc411 100644
--- a/doc/staging-build.md
+++ b/doc/staging-build.md
@@ -10,7 +10,9 @@ Also build the UI for staging:
```
docker build -t coinos-ui-staging:0.1.0 -f Dockerfile.stage .
-docker run --rm --mount type=bind,source="$(pwd)",destination=/app --user $UID:$GID coinos-ui-staging:0.1.0 pnpm stage
+#spit out the build:
+docker run --rm -v $(pwd)/dist:/dist coinos-ui-staging:0.1.0 bash -c 'cd app; pnpm stage; cp -rf dist/* /dist'
+
```
diff --git a/docker-compose.staging.yml b/docker-compose.staging.yml
index 0d838a5a..c29ed3aa 100644
--- a/docker-compose.staging.yml
+++ b/docker-compose.staging.yml
@@ -15,8 +15,9 @@ services:
environment:
NODE_ENV: development
volumes:
- - ./:/app
-
+ - ./config:/app/config
+ command: node index
+
ui:
profiles:
- donotstart
diff --git a/docker-compose.yml b/docker-compose.yml
index 55e943da..6eb5957b 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -14,7 +14,6 @@ services:
environment:
NODE_ENV: development
volumes:
- - ./:/app
- ./logs:/logs
bitcoin:
image: asoltys/bitcoin:latest