Skip to content

Commit 3887bdf

Browse files
author
a19hu
committed
changes for production
1 parent 81cd8e5 commit 3887bdf

File tree

9 files changed

+50
-20948
lines changed

9 files changed

+50
-20948
lines changed

docker-compose.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,34 @@ services:
1515
build: ./server
1616
ports:
1717
- "8000:8000"
18+
depends_on:
19+
- db
20+
environment:
21+
- DB_NAME=familytree
22+
- DB_USER=postgres
23+
- DB_PASSWORD=dev@iitj
24+
- DB_HOST=db
25+
- DB_PORT=5432
26+
27+
db:
28+
image: postgres:latest
29+
restart: always
30+
environment:
31+
- POSTGRES_DB=familytree
32+
- POSTGRES_USER=postgres
33+
- POSTGRES_PASSWORD=dev@iitj
34+
ports:
35+
- "5432:5432"
36+
volumes:
37+
- postgres_data:/var/lib/postgresql/data
38+
39+
redis:
40+
image: redis:alpine
41+
ports:
42+
- "6379:6379"
43+
44+
volumes:
45+
postgres_data:
1846

1947

2048

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# build step
22
FROM node:alpine
33
WORKDIR /myapp
4-
COPY package*.json ./
4+
COPY package.json ./
55
#COPY . .
66
RUN npm install
77
COPY . ./

0 commit comments

Comments
 (0)