Interservice communication

This commit is contained in:
Eden Kirin
2024-01-14 22:56:06 +01:00
parent a27461cca8
commit e8bf362c6b
3 changed files with 45 additions and 9 deletions

View File

@ -18,11 +18,13 @@ services:
context: ./machines
dockerfile: Dockerfile
environment:
- APPPORT=3000
- DBHOST=db
- DBPORT=5432
- DBNAME=komponiranje
- DBUSER=pero
- DBPASSWORD=pero.000
- PRODUCTSAPPURL=http://products-service:3000
# ports:
# - 3000:3000
depends_on:
@ -33,6 +35,7 @@ services:
context: ./products
dockerfile: Dockerfile
environment:
- APPPORT=3000
- DBHOST=db
- DBPORT=5432
- DBNAME=komponiranje