Skip to content

Commit 249d3c4

Browse files
committed
Add hot reloading for docker compose dev
1 parent 4a0f33b commit 249d3c4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

samples/mastra-nextjs/compose.dev.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ services:
33
extends:
44
file: compose.yaml
55
service: app
6+
command: ["pnpm", "run", "dev"]
67
environment:
78
- DB_URL=postgres://postgres:password@database:5432/postgres
8-
- DB_SSL=false #set this to true if deploying to defang playground
9-
- LLM_MODEL=gemini-2.5-flash
10-
- GOOGLE_GENERATIVE_AI_API_KEY=xxx
11-
- GITHUB_TOKEN=xxx # remove this line if unused
9+
- DB_SSL=false
10+
- LLM_MODEL=google/gemini-2.5-flash #https://mastra.ai/models/providers/google
11+
- GOOGLE_GENERATIVE_AI_API_KEY= #require for local docker compose development
12+
- GITHUB_TOKEN= # remove this line if unused
13+
volumes: # for hot-reloading during development
14+
- ./app:/app
15+
- /app/node_modules
1216

1317
database:
1418
image: postgres:16

0 commit comments

Comments
 (0)