Files
SealShare/docker-compose.dev.yml
T
Andreas Reinhold / reiniandClaude Opus 5 4470c2ed87 Give the dev container its own node_modules
npm installs the build tools' native binaries for the platform it runs
on, so a folder shared with the host only ever held Linux's or macOS's.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy
2026-09-13 12:30:53 +02:00

38 lines
1.2 KiB
YAML

services:
app:
build:
context: .
dockerfile: docker/dev.Dockerfile
ports:
- "8000:8000"
- "5173:5173"
volumes:
- .:/app
# Its own node_modules: npm installs the build tools' native binaries for Linux here and for
# the host's platform there, and a shared folder only ever holds one of them.
- /app/node_modules
environment:
APP_KEY: ${APP_KEY:-}
APP_URL: http://localhost:8000
APP_ENV: local
# Compiled views stay in the container. The host shares storage/ through the mount, and
# compiled Livewire components hold absolute paths (/app/… here, the checkout's path there).
VIEW_COMPILED_PATH: /tmp/views
APP_DEBUG: "true"
SERVER_NAME: ":8000"
DB_CONNECTION: sqlite
LOG_CHANNEL: stack
LOG_LEVEL: debug
OCTANE_MAX_EXECUTION_TIME: "300"
PHP_UPLOAD_MAX_FILESIZE: "4G"
PHP_POST_MAX_SIZE: "4G"
PHP_MAX_EXECUTION_TIME: "300"
PHP_MAX_INPUT_TIME: "300"
PHP_MEMORY_LIMIT: "512M"
healthcheck:
test: ["CMD", "curl", "--silent", "--fail", "http://localhost:8000/up"]
interval: 30s
timeout: 5s
start_period: 30s
retries: 3