-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
37 lines (33 loc) · 1.06 KB
/
Copy pathdocker-compose.override.yml
File metadata and controls
37 lines (33 loc) · 1.06 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
# Development overrides for docker-compose.yml
# This file is automatically loaded by docker-compose for development
version: '3.8'
services:
postgres:
container_name: shopping-list-db-dev
ports:
- "5432:5432"
# Development: expose database port for debugging
backend:
container_name: shopping-list-backend-dev
build:
context: ./backend
dockerfile: Dockerfile # Use development Dockerfile
volumes:
- ./backend:/app
- /app/build # Exclude build directory from volume mount
environment:
- KTOR_ENV=development
command: ["./gradlew", "run", "--no-daemon"]
# Development: hot reload and volume mounting
frontend:
container_name: shopping-list-frontend-dev
build:
context: ./frontend
dockerfile: Dockerfile # Use development Dockerfile
volumes:
- ./frontend:/app
- /app/node_modules # Exclude node_modules from volume mount
environment:
- NODE_ENV=development
command: ["npm", "run", "dev", "--", "--host"]
# Development: hot reload and volume mounting