Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
53 lines (48 loc) · 1.57 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
53 lines (48 loc) · 1.57 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
services:
app:
container_name: metamcp-dev
build:
context: .
dockerfile: Dockerfile.dev
env_file:
- path: .env
required: false
ports:
- "12008:12008"
- "12009:12009"
volumes:
# Mount source code for hot reloading
- .:/app
- /app/node_modules
- /app/apps/frontend/node_modules
- /app/apps/backend/node_modules
- /app/packages/trpc/node_modules
- /app/packages/zod-types/node_modules
- /app/packages/eslint-config/node_modules
- /app/packages/typescript-config/node_modules
- sqlite_data_dev:/data
environment:
# pnpm runs non-interactively here (detached compose has no TTY). Without
# CI=true, a `pnpm install` that needs to purge node_modules aborts with
# ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY and kills the container.
CI: "true"
LOG_LEVEL: ${LOG_LEVEL:-all}
DATABASE_URL: ${DATABASE_URL:-file:/data/metamcp.db}
# Application URL configuration
APP_URL: ${APP_URL:-http://localhost:12008}
NEXT_PUBLIC_APP_URL: ${APP_URL:-http://localhost:12008}
# Auth configuration
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:-your-super-secret-key-change-this-in-production}
# Docker networking fix
TRANSFORM_LOCALHOST_TO_DOCKER_INTERNAL: ${TRANSFORM_LOCALHOST_TO_DOCKER_INTERNAL:-true}
extra_hosts:
- "host.docker.internal:host-gateway"
restart: "no"
networks:
- metamcp-network
volumes:
sqlite_data_dev:
driver: local
networks:
metamcp-network:
driver: bridge