forked from FaisalHossain19/Results_Presentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 813 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
backend:
build: .
ports:
- "8000:8000"
depends_on:
- db
networks:
- app_network
db:
image: postgres:latest
container_name: postgres_db_1
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: test_dash_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
networks:
- app_network
frontend:
build:
context: ./next_js_frontend # Specify the path to your frontend folder
ports:
- "3000:3000" # Expose the frontend port (3000 is the default for Next.js)
depends_on:
- backend # Ensure the backend is up before the frontend
networks:
- app_network
volumes:
postgres_data:
networks:
app_network:
driver: bridge