-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
49 lines (41 loc) · 1.16 KB
/
docker-compose.dev.yml
File metadata and controls
49 lines (41 loc) · 1.16 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
services:
ephemeral:
build:
context: .
dockerfile: Dockerfile
target: builder # Use builder stage for development
image: ephemeral:dev
container_name: ephemeral-dev
# Development environment
environment:
- NODE_ENV=development
- API_PORT=3000
- API_HOST=0.0.0.0
- DOCKER_SOCKET_PATH=/var/run/docker.sock
- DOCKER_DEFAULT_IMAGE=nginx:alpine
- CLEANUP_INTERVAL=60 # Faster cleanup for testing
- CLEANUP_INACTIVITY_TIMEOUT=300
# Port mapping
ports:
- "3000:3000"
- "8000-9000:8000-9000"
- "9229:9229" # Debug port
# Volume mounts for development
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- .:/app # Source code mounting
- /app/node_modules # Prevent node_modules override
- dev-logs:/app/logs
# Override command for development
command: ["npm", "run", "dev"]
# Remove resource limits for development
deploy:
resources: {}
networks:
- ephemeral-network
volumes:
dev-logs:
driver: local
networks:
ephemeral-network:
driver: bridge