Replace pwd with relative path, update README
This commit is contained in:
@@ -7,17 +7,34 @@ Rename `.env-sample` to `.env` and fill in credentials
|
|||||||
|
|
||||||
## Run
|
## Run
|
||||||
```
|
```
|
||||||
docker-compose up node
|
docker-compose up node --build
|
||||||
docker-compose up scala
|
docker-compose up scala --build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Web
|
## Web
|
||||||
[http://0.0.0.0:9080/](http://0.0.0.0:9080/)
|
[http://0.0.0.0:9080/](http://0.0.0.0:9080/)
|
||||||
|
|
||||||
|
## nginx proxy config
|
||||||
|
```
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name laikazinas.lsm.lv;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://localhost:9080; # Forward requests to the Scala app
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection 'upgrade';
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_cache_bypass $http_upgrade;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Local development
|
## Local development
|
||||||
```
|
```
|
||||||
// 1st terminal
|
// 1st terminal
|
||||||
sbt
|
sbt run
|
||||||
|
|
||||||
// 2nd terminal
|
// 2nd terminal
|
||||||
cd web/
|
cd web/
|
||||||
|
|||||||
+2
-2
@@ -3,7 +3,7 @@ services:
|
|||||||
image: node:16.13.1
|
image: node:16.13.1
|
||||||
working_dir: /app/web
|
working_dir: /app/web
|
||||||
volumes:
|
volumes:
|
||||||
- $PWD/web:/app/web
|
- ./web:/app/web
|
||||||
command: sh -c "npm install && npm run build"
|
command: sh -c "npm install && npm run build"
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
@@ -34,7 +34,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile.local
|
dockerfile: Dockerfile.local
|
||||||
volumes:
|
volumes:
|
||||||
- $PWD:/app
|
- ./:/app
|
||||||
ports:
|
ports:
|
||||||
- "9080:8080"
|
- "9080:8080"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user