forked from 2023SVBootcamp-Team-A/project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.1 KB
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
50
# 개발용 docker-compose 파일
# 실행 방법: sudo docker compose up -d --build
version: "3"
services:
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- 5173:5173
stdin_open: true
volumes:
# :을 기준으로 왼쪽은 빌드 이전의 로컬 폴더 오른쪽은 컨테이너 내부의 폴더
- ./frontend/:/frontend
- /frontend/node_modules
tty: true
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
db:
image: postgres
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
pgadmin:
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD}
ports:
- "8080:80"
web:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- ./backend:/backend/
ports:
- "8000:8000"
depends_on:
- db
container_name: backend
environment:
- DJANGO_DEBUG=True