-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
65 lines (59 loc) · 1.6 KB
/
docker-compose.dev.yml
File metadata and controls
65 lines (59 loc) · 1.6 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
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.9'
# Development override configuration
# Usage: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
services:
app:
build:
context: .
dockerfile: Dockerfile
target: development
args:
- NODE_ENV=development
container_name: boltdiy-v2-dev
image: boltdiy-v2:dev
ports:
# Vite dev server
- "${DEV_PORT:-5173}:5173"
# Vite HMR websocket
- "24678:24678"
env_file:
- .env.local
environment:
- NODE_ENV=development
- VITE_LOG_LEVEL=debug
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
restart: unless-stopped
volumes:
# Mount source code for live reloading
- ./app:/app/app:delegated
- ./public:/app/public:delegated
- ./scripts:/app/scripts:delegated
- ./styles:/app/styles:delegated
- ./.env.local:/app/.env.local:ro
# Mount config files
- ./package.json:/app/package.json:ro
- ./tsconfig.json:/app/tsconfig.json:ro
- ./vite.config.ts:/app/vite.config.ts:ro
- ./tailwind.config.ts:/app/tailwind.config.ts:ro
- ./wrangler.toml:/app/wrangler.toml:ro
# Prevent overwriting node_modules
- node_modules:/app/node_modules
- /app/.cache
- /app/.vite
- /app/.remix
networks:
- boltdiy-network
stdin_open: true
tty: true
command: pnpm run dev --host 0.0.0.0
labels:
- "com.boltdiy.service=dev"
- "com.boltdiy.version=2.0"
- "com.boltdiy.environment=development"
networks:
boltdiy-network:
driver: bridge
volumes:
node_modules:
driver: local