aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-10-25 22:36:59 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-10-25 22:36:59 +0300
commitc88a72e97ee79653e892f3566d22c88c96581ac4 (patch)
tree906c91ed43ac93b1b0c973bb7e518de644327de9
parentd4623316147306fa56e7a5317ea608dff975eb6d (diff)
change some docker compose things
-rw-r--r--README.md1
-rw-r--r--docker-compose.yaml4
2 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 84fcd84..d4bd859 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,7 @@ This is the API of the [scale project](https://git.batnako.net/scale.git).
### Build and Run
+Make sure to run `npm update`.
To deploy this api first you have to start the database: `docker-compose up -d db`.
And then run the API: `docker-compose up scale-api`.
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 0c4c746..4afde36 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -3,7 +3,7 @@ services:
scale-api:
image: "node:latest"
container_name: scale-api
- user: "node"
+ user: "root"
working_dir: /home/node/app
environment:
- NODE_ENV=production
@@ -16,7 +16,7 @@ services:
command: "npm run dev"
db:
image: postgres:latest
- container_name: sclale-postgres
+ container_name: scale-postgres
environment:
- POSTGRES_USER=scale
- POSTGRES_PASSWORD=secret