-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
39 lines (36 loc) · 1005 Bytes
/
docker-compose.dev.yml
File metadata and controls
39 lines (36 loc) · 1005 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
# Development compose file with hot reload
version: '3.8'
services:
app-dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: abc-journal-dev
restart: unless-stopped
ports:
- "3000:3000" # Vite dev server
- "${PORT:-3100}:${PORT:-3100}" # Backend API
environment:
- NODE_ENV=development
- PORT=${PORT:-3100}
- JWT_SECRET=${JWT_SECRET:-dev-secret-key-change-me}
- GEMINI_API_KEY=${GEMINI_API_KEY}
- DATABASE_PATH=/app/server/db/abc-journal.db
volumes:
# Mount source code for hot reload
- ./client:/app/client
- ./server:/app/server
- ./package.json:/app/package.json
- ./vite.config.js:/app/vite.config.js
# Use named volumes for node_modules to avoid conflicts
- node-modules:/app/node_modules
networks:
- abc-network-dev
command: npm run dev
stdin_open: true
tty: true
volumes:
node-modules:
networks:
abc-network-dev:
driver: bridge