-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
68 lines (62 loc) · 2.15 KB
/
docker-compose.override.yml
File metadata and controls
68 lines (62 loc) · 2.15 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Development overrides - automatically loaded by 'docker compose'
# This file is auto-loaded when you run: docker compose up
# No need to specify -f docker-compose.override.yml
services:
web:
build:
context: .
target: deps # Stop at deps stage - no production build
env_file:
- .env.local
command: sh -c "([ ! -d node_modules ] && npm install || true) && npm run dev:next"
volumes:
- .:/app # Mount source code for hot reloading
- /app/node_modules # Preserve container's node_modules
- /app/.next # Preserve build artifacts
- ./.data/uploads/images:/data/uploads/images
# Override entrypoint to skip production entrypoint script
entrypoint: []
# Use root user in dev (simpler, and we're not in production)
user: root
db:
env_file:
- .env.local
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres_data_dev:/var/lib/postgresql/data
system-profiler:
build:
context: ./system-profiler
target: deps # Stop at deps stage - no production build
env_file:
- .env.local
environment:
- MOCK_HOST_STATS=true # Force mock mode in dev to use mock data
command: sh -c "([ ! -d node_modules ] && npm install || true) && npm run dev"
volumes:
- ./system-profiler:/app # Mount source code for hot reloading
- ./shared:/shared # Mount shared package for TypeScript path resolution
- /app/node_modules # Preserve container's node_modules
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker socket (works on Docker Desktop)
ports:
- "8787:8787"
# Override entrypoint to skip production entrypoint script
entrypoint: []
# Use root user in dev (simpler, and we're not in production)
user: root
ai-img-validator:
build: ./ai-img-validator # Dev: build from source (prod uses cached image)
ports:
- "8000:8000"
umami:
ports:
- "127.0.0.1:3001:3000"
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/umami
APP_SECRET: dev-secret-change-in-prod
TZ: America/Los_Angeles
env_file:
- .env.local
volumes:
postgres_data_dev: