41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: commander-dev
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
target: dev
|
|
command: sh -c "npm install --no-audit --no-fund && npm run dev"
|
|
volumes:
|
|
- ./backend:/app
|
|
- backend_node_modules:/app/node_modules
|
|
# Host networking lets the container reach a MongoDB bound to 127.0.0.1.
|
|
network_mode: host
|
|
environment:
|
|
PORT: ${PORT:-4000}
|
|
CORS_ORIGIN: ${CORS_ORIGIN:-http://localhost:3000}
|
|
MONGODB_URI: ${MONGODB_URI:-mongodb://localhost:27017/commander}
|
|
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY:-}
|
|
OPENROUTER_MODEL: ${OPENROUTER_MODEL:-google/gemini-2.5-flash-lite}
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
target: dev
|
|
command: sh -c "npm install --no-audit --no-fund && npm run dev -- --host 0.0.0.0"
|
|
volumes:
|
|
- ./frontend:/app
|
|
- frontend_node_modules:/app/node_modules
|
|
- frontend_nuxt:/app/.nuxt
|
|
ports:
|
|
- "${FRONTEND_PORT:-3000}:3000"
|
|
environment:
|
|
NUXT_PUBLIC_API_BASE: ${NUXT_PUBLIC_API_BASE:-http://localhost:4000}
|
|
depends_on:
|
|
- backend
|
|
|
|
volumes:
|
|
backend_node_modules:
|
|
frontend_node_modules:
|
|
frontend_nuxt:
|