-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
43 lines (39 loc) · 1.19 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
43 lines (39 loc) · 1.19 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
# Dev override: bind-mounts local vault path, hot-reloads code, skips
# vault-syncer and the Caddy edge so the app stays reachable on
# http://localhost:3000 directly.
#
# Usage:
# export VAULT_PATH=$(pwd)/vault.example # bundled sample
# # or: export VAULT_PATH=/path/to/your/Obsidian/Vault
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up
services:
web:
build:
target: dev
command: npm run dev
volumes:
- ./web:/app
- /app/node_modules
- /app/.next
environment:
NODE_ENV: development
API_BASE_URL: http://api:8000
ports:
- "127.0.0.1:3000:3000"
api:
command: uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload
environment:
# In dev the bind mount IS the vault root, no inner subdir.
VAULT_PATH: /vault
volumes:
- ./api:/app
- "${VAULT_PATH:-./vault.example}:/vault:ro"
# Expose api port for direct testing/curl. Comment out for prod parity.
ports:
- "127.0.0.1:8000:8000"
vault-syncer:
profiles:
- never # disabled in dev — vault is bind-mounted live
caddy:
profiles:
- never # disabled in dev — web binds 3000 directly on localhost