TuringsSolutions commited on
Commit
e2244e3
·
verified ·
1 Parent(s): 96e1d87

Create docker-compose.yaml

Browse files
Files changed (1) hide show
  1. docker-compose.yaml +30 -0
docker-compose.yaml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+
3
+ services:
4
+ db:
5
+ image: postgres:13
6
+ container_name: my_postgres_db
7
+ environment:
8
+ POSTGRES_USER: user
9
+ POSTGRES_PASSWORD: password
10
+ POSTGRES_DB: mydatabase
11
+ volumes:
12
+ - postgres_data:/var/lib/postgresql/data
13
+ - ./init.sql:/docker-entrypoint-initdb.d/init.sql
14
+ ports:
15
+ - "5432:5432"
16
+
17
+ web:
18
+ build: .
19
+ container_name: my_web_app_container
20
+ ports:
21
+ - "7860:7860"
22
+ depends_on:
23
+ - db
24
+ environment:
25
+ - NODE_ENV=development
26
+ links:
27
+ - db
28
+
29
+ volumes:
30
+ postgres_data: