Fix in docker-comose, binding changes

This commit is contained in:
Guntis Smaukstelis
2023-12-28 12:11:08 +02:00
parent 5dfe61137c
commit 7d78a96e35
3 changed files with 6 additions and 5 deletions
+1
View File
@@ -1,4 +1,5 @@
src/main/resources/application.conf
postgres/
target/
project/target/
+2 -2
View File
@@ -12,7 +12,7 @@ docker-compose up scala --build
```
## Web
[http://0.0.0.0:9080/](http://0.0.0.0:9080/)
[http://0.0.0.0:9090/](http://0.0.0.0:9090/)
## nginx proxy config
```
@@ -21,7 +21,7 @@ server {
server_name laikazinas.lsm.lv;
location / {
proxy_pass http://localhost:9080; # Forward requests to the Scala app
proxy_pass http://localhost:9090; # Forward requests to the Scala app
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
+3 -3
View File
@@ -11,7 +11,7 @@ services:
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${DATABASE_USER}" ]
test: [ "CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}" ]
interval: 5s
timeout: 5s
retries: 5
@@ -20,7 +20,7 @@ services:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- /var/lib/postgresql/data:/var/lib/postgresql/data
- ./postgres:/var/lib/postgresql/data
scala:
environment:
@@ -36,6 +36,6 @@ services:
volumes:
- ./:/app
ports:
- "9080:8080"
- "9090:8080"
depends_on:
- postgres