mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
nodejs postgres connection
Signed-off-by: Utkarsh Mathur <utkarshmathur05@gmail.com>
This commit is contained in:
parent
e6b1d2755f
commit
99a93a5da8
5 changed files with 60 additions and 0 deletions
19
nodejs-postgres/docker-compose.yml
Normal file
19
nodejs-postgres/docker-compose.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
version: '3'
|
||||
services:
|
||||
db:
|
||||
build:
|
||||
context: ./postgres
|
||||
ports:
|
||||
- "5432:5432"
|
||||
app:
|
||||
build:
|
||||
context: ./nodejs
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
- backend
|
||||
|
||||
networks:
|
||||
backend:
|
Loading…
Add table
Add a link
Reference in a new issue