-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 847 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 847 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
services:
# Frontend Development Server
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: development
container_name: portfolio-frontend
ports:
- "5173:5173"
volumes:
# Mount source code for hot reload
- ./frontend/src:/app/src
- ./frontend/public:/app/public
- ./frontend/index.html:/app/index.html
- ./frontend/vite.config.ts:/app/vite.config.ts
- ./frontend/tsconfig.json:/app/tsconfig.json
- ./frontend/tsconfig.node.json:/app/tsconfig.node.json
# Prevent overwriting node_modules
- /app/node_modules
environment:
- NODE_ENV=development
- VITE_HOST=0.0.0.0
stdin_open: true
tty: true
networks:
- portfolio-network
restart: unless-stopped
networks:
portfolio-network:
driver: bridge