Files
pl_mail/compose.dev.yaml
Paul LütznerandClaude Opus 5.5 ffbf7bdd9b Clean up the compose files (#160)
Compose files keep only a short header; the reasoning lives in
docs/install. truenas.compose.yaml is gone (the TrueNAS catalog app
replaces it) and so is compose.prod.yaml (compose.yaml already runs the
published prod image). compose.override.yaml.dist becomes compose.dev.yaml,
passed with -f, so there is no untracked copy that compose loads on its
own. Docs, CODESTYLE, CONTRIBUTING and the entrypoint's error text follow.

Every remaining file resolves to the same `docker compose config` as
before.

Closes #30

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 11:43:22 +02:00

70 lines
1.5 KiB
YAML

# Development stack: builds the dev image and mounts the source.
# docker compose -f compose.yaml -f compose.dev.yaml up -d --wait
x-dev-build: &dev-build
image: pl_mail-dev:latest
build:
context: .
target: frankenphp_dev
services:
secrets-init:
<<: *dev-build
php:
<<: *dev-build
volumes:
- ./:/app
- app_var:/app/var
- app_attachments:/app/var/attachments
- app_raw:/app/var/raw
- app_uploads:/app/var/uploads
- ./frankenphp/Caddyfile:/etc/frankenphp/Caddyfile:ro
- ./frankenphp/conf.d/20-app.dev.ini:/usr/local/etc/php/conf.d/20-app.dev.ini:ro
environment:
APP_ENV: ${APP_ENV:-dev}
XDEBUG_MODE: "${XDEBUG_MODE:-off}"
extra_hosts:
- host.docker.internal:host-gateway
tty: true
worker:
<<: *dev-build
volumes:
- ./:/app
- app_attachments:/app/var/attachments
- app_raw:/app/var/raw
- app_uploads:/app/var/uploads
environment:
APP_ENV: ${APP_ENV:-dev}
database:
ports:
- "5432:5432"
adminer:
image: adminer
restart: unless-stopped
ports:
- "8080:8080"
environment:
ADMINER_DEFAULT_SERVER: database
tailwind:
<<: *dev-build
volumes:
- .:/app
- app_secrets:/app/var/secrets
- app_var:/app/var
command: php bin/console tailwind:build --watch
healthcheck:
disable: true
depends_on:
- php
volumes:
app_var:
app_attachments:
app_raw:
app_uploads: