-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
53 lines (52 loc) · 1.71 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
53 lines (52 loc) · 1.71 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:
dev:
init: true
build:
context: .
ports:
- "127.0.0.1:5173:5173"
volumes:
# The checkout is never overlaid on /app: doing that makes nested named
# volumes impossible to mount when their host-side directories do not
# exist. The entrypoint links a finite set of live inputs into /app.
- type: bind
source: "${ZIGCSS_DEV_SOURCE_DIRECTORY:-.}"
target: /workspace
read_only: true
# Keep Vite's config at its logical /app/docs path. Loading it through a
# symlink would make package resolution escape to host node_modules.
- type: bind
source: ./docs/vite.config.ts
target: /app/docs/vite.config.ts
read_only: true
- docs-node-modules:/app/docs/node_modules
- zig-bin:/app/bin
- zig-cache:/app/zig-cache
- zig-out:/app/zig-out
- dot-zig-cache:/app/.zig-cache
- zig-global-cache:/home/node/.cache/zig
environment:
- CHOKIDAR_USEPOLLING=true
- ZIGCSS_DOCS_DEV_EXTERNAL=1
- ZIGCSS_DEV_BIN_DIRECTORY=/app/bin
healthcheck:
test: ["CMD-SHELL", "test -f /app/bin/.zigcss-dev-ready && /app/bin/zigcss --version >/dev/null && wget -q --spider -T 5 http://127.0.0.1:5173/zigcss/"]
interval: 10s
timeout: 5s
retries: 12
start_period: 60s
stop_grace_period: 10s
labels:
playgrounds.github_url: https://github.com/vyakymenko/zigcss
playgrounds.dockerfile: Dockerfile
playgrounds.branch: main
playgrounds.source_mount: "/workspace"
playgrounds.start_command: "node dev.js"
playgrounds.production: false
volumes:
docs-node-modules:
zig-bin:
zig-cache:
zig-out:
dot-zig-cache:
zig-global-cache: