chore: bootstrap development environment
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
target: dev
|
||||
container_name: holodream-tools-dev
|
||||
working_dir: /app
|
||||
command: npm run dev -- --host 0.0.0.0
|
||||
environment:
|
||||
NODE_ENV: development
|
||||
DATABASE_URL: /app/data/holodream.db
|
||||
WATCH_USE_POLLING: "true"
|
||||
ports:
|
||||
- "5173:5173"
|
||||
volumes:
|
||||
- .:/app
|
||||
- node_modules:/app/node_modules
|
||||
- sqlite_data:/app/data
|
||||
healthcheck:
|
||||
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:5173/api/health').then((response) => { if (!response.ok) process.exit(1); }).catch(() => process.exit(1))"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
start_period: 15s
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
node_modules:
|
||||
sqlite_data:
|
||||
Reference in New Issue
Block a user