Files
core2026_docker/compose.dev.yaml
T

33 lines
894 B
YAML

services:
postgres:
restart: "no"
redis:
restart: "no"
runtime:
user: ${DEV_UID:-1000}:${DEV_GID:-1000}
environment:
CORE_SOURCE_MODE: bind
CORE_BIND_ROOT: /workspace/core2026
RUNTIME_MODE: development
VITE_PREVIEW_ALLOWED_HOSTS: '*'
volumes:
- ${CORE_DEV_PATH:-../core2026}:/workspace/core2026
- runtime-data:/srv/data
- core-source:/srv/core
command: [sh, -c, sleep infinity]
healthcheck:
test: [CMD-SHELL, 'test -d /workspace/core2026/node_modules/.pnpm']
interval: 10s
timeout: 5s
retries: 30
start_period: 5m
mem_limit: ${DEV_RUNTIME_MEMORY_LIMIT:-4g}
memswap_limit: ${DEV_RUNTIME_MEMORY_SWAP_LIMIT:-4g}
cpus: ${DEV_RUNTIME_CPU_LIMIT:-4}
pids_limit: ${DEV_RUNTIME_PIDS_LIMIT:-256}
restart: "no"
caddy:
environment:
SITE_ADDRESS: :80
restart: "no"