2025-12-08 12:07:01 +01:00
|
|
|
services:
|
|
|
|
|
kicad-wasm-builder:
|
|
|
|
|
build:
|
|
|
|
|
context: ..
|
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
|
container_name: kicad-wasm-builder
|
|
|
|
|
|
2025-12-12 14:51:38 +01:00
|
|
|
# Resource limits (adjust based on your machine)
|
2025-12-08 12:07:01 +01:00
|
|
|
deploy:
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
|
|
|
|
cpus: '10'
|
2025-12-12 14:51:38 +01:00
|
|
|
memory: 32G
|
2025-12-08 12:07:01 +01:00
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
# Source code (read-write for git operations)
|
|
|
|
|
- ..:/workspace:cached
|
|
|
|
|
# Named volume for build cache (faster than bind mount on macOS)
|
|
|
|
|
- kicad-build-cache:/workspace/build-wasm
|
|
|
|
|
# Output directory for easy access to final WASM files
|
|
|
|
|
- ../output:/workspace/output
|
|
|
|
|
|
|
|
|
|
# Keep container running for interactive use
|
|
|
|
|
stdin_open: true
|
|
|
|
|
tty: true
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
kicad-build-cache:
|