-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (43 loc) · 1.13 KB
/
docker-compose.yml
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
41
42
43
44
45
46
47
48
49
version: "3"
services:
web:
build:
context: ./backend
dockerfile: Dockerfile.backend # Name of the Dockerfile for backend
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./backend:/app
ports:
- 8000:8000
depends_on:
- db
# frontend:
# build:
# context: ./frontend # Path to the React frontend folder
# dockerfile: Dockerfile.frontend # Name of the Dockerfile for frontend
# ports:
# - "3000:3000" # Expose React on port 3000
# volumes:
# - ./frontend:/app # Mount the frontend folder into the container
db:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
pgadmin:
image: dpage/pgadmin4
container_name: demo-pgadmin #you can change this
depends_on:
- db
ports:
- "5051:80"
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin4@pgadmin.org
PGADMIN_DEFAULT_PASSWORD: root
restart: always
networks:
default:
name: closez_network # Update with your network name if needed
volumes:
postgres_data: