The checkout is mounted at /app, so views compiled in the container and on the host landed in one storage/framework/views, and each side read the other's absolute paths. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy
35 lines
1004 B
YAML
35 lines
1004 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/dev.Dockerfile
|
|
ports:
|
|
- "8000:8000"
|
|
- "5173:5173"
|
|
volumes:
|
|
- .:/app
|
|
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
|