aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-10-25 22:36:05 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-10-25 22:36:05 +0300
commit921421f2e2f44178333f8ef3011c43bc4eb6e39e (patch)
treec8a2fe5bc3b1fd2d080574da4bb58d9f2db3d943
parent9dfd6aa77518b3a1e6bfd926a3b7719c32a8c97f (diff)
fix some docker compose things
-rw-r--r--README.md5
-rw-r--r--docker-compose.yaml2
2 files changed, 4 insertions, 3 deletions
diff --git a/README.md b/README.md
index 975962f..cf60646 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,9 @@ You can find the API [here](https://git.batnako.net/scale-api.git/).
### Build and Run
-For development I use: `NODE_TLS_REJECT_UNAUTHORIZED=0 DEV=1 npm run dev`
-To delpoy it with docker: `docker-compose up scale`
+Make sure to run `npm update` before anything else.
+For development I use: `NODE_TLS_REJECT_UNAUTHORIZED=0 DEV=1 npm run dev`.
+To delpoy it with docker: `docker-compose up scale`.
### What can it do?
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 046eb60..cd54092 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -3,7 +3,7 @@ services:
scale:
image: "node:latest"
container_name: scale
- user: "node"
+ user: "root"
working_dir: /home/node/app
environment:
- NODE_ENV=production