-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
54 lines (49 loc) · 1.08 KB
/
docker-compose.dev.yml
File metadata and controls
54 lines (49 loc) · 1.08 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
51
52
53
54
# Docker Compose for Development
# Lightweight setup for local development
version: '3.8'
services:
# Development application with hot reloading
aura-dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: aura-dev
ports:
- '5173:5173'
- '9229:9229' # Debug port
environment:
- NODE_ENV=development
- PORT=5173
- LOG_LEVEL=debug
env_file:
- .env.local
volumes:
- .:/app
- /app/node_modules # Prevent overwriting node_modules
- ./logs:/app/logs
depends_on:
- mongodb-dev
networks:
- aura-dev-network
stdin_open: true
tty: true
# MongoDB for development
mongodb-dev:
image: mongo:7.0
container_name: aura-mongodb-dev
ports:
- '27017:27017'
environment:
MONGO_INITDB_ROOT_USERNAME: dev
MONGO_INITDB_ROOT_PASSWORD: dev
MONGO_INITDB_DATABASE: aura_dev
volumes:
- mongodb_dev_data:/data/db
networks:
- aura-dev-network
volumes:
mongodb_dev_data:
driver: local
networks:
aura-dev-network:
driver: bridge