-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (25 loc) · 824 Bytes
/
docker-compose.yml
File metadata and controls
27 lines (25 loc) · 824 Bytes
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
# Dev-only: build `Dockerfile.dev` (Bun + build tools for better-sqlite3), then bind-mount the repo.
# First start runs `bun install` inside the container (once per fresh volume).
# Polling env vars help file watching when the repo is bind-mounted (e.g. Docker Desktop on macOS).
services:
web:
build:
context: .
dockerfile: Dockerfile.dev
image: codepiece-hackathon-web:dev
working_dir: /app
ports:
- "4000:4000"
environment:
CODEPIECE_DB: /data/codepiece.db
PORT: "4000"
NEXT_TELEMETRY_DISABLED: "1"
WATCHPACK_POLLING: "true"
CHOKIDAR_USEPOLLING: "true"
volumes:
- .:/app
- web_node_modules:/app/node_modules
- ./data:/data
command: ["sh", "-c", "bun install && exec bun run dev -- -H 0.0.0.0"]
volumes:
web_node_modules: