2026-09-04 12:02:22 +01:00
|
|
|
name: php-project-manager
|
|
|
|
|
|
2026-09-03 17:45:35 +01:00
|
|
|
services:
|
|
|
|
|
app:
|
|
|
|
|
build: .
|
2026-09-04 12:00:16 +01:00
|
|
|
image: php-project-manager
|
2026-09-03 17:45:35 +01:00
|
|
|
ports:
|
|
|
|
|
- "8080:80"
|
|
|
|
|
environment:
|
|
|
|
|
APP_DEBUG: "${APP_DEBUG:-false}"
|
2026-09-04 13:37:07 +01:00
|
|
|
# Generated files (SQLite DB + JWT signing key) go here, on the `storage`
|
|
|
|
|
# volume below.
|
2026-09-03 17:51:56 +01:00
|
|
|
STORAGE_PATH: /var/www/storage
|
2026-09-03 17:45:35 +01:00
|
|
|
# Leave blank to auto-generate a secret into the storage volume on first run.
|
|
|
|
|
JWT_SECRET: "${JWT_SECRET:-}"
|
|
|
|
|
JWT_TTL: "${JWT_TTL:-86400}"
|
2026-09-04 13:37:07 +01:00
|
|
|
# The SPA and the API are both served from this container.
|
|
|
|
|
APP_URL: "${APP_URL:-http://localhost:8080}"
|
2026-09-04 08:40:36 +01:00
|
|
|
# Deliver to the Mailpit catcher below; read mail at http://localhost:8025.
|
|
|
|
|
MAIL_TRANSPORT: "${MAIL_TRANSPORT:-smtp}"
|
|
|
|
|
MAIL_FROM: "${MAIL_FROM:-no-reply@todo.test}"
|
|
|
|
|
MAIL_SMTP_HOST: "${MAIL_SMTP_HOST:-mailpit}"
|
|
|
|
|
MAIL_SMTP_PORT: "${MAIL_SMTP_PORT:-1025}"
|
2026-09-03 20:04:49 +01:00
|
|
|
MAIL_SMTP_USERNAME: "${MAIL_SMTP_USERNAME:-}"
|
|
|
|
|
MAIL_SMTP_PASSWORD: "${MAIL_SMTP_PASSWORD:-}"
|
2026-09-04 08:40:36 +01:00
|
|
|
MAIL_SMTP_ENCRYPTION: "${MAIL_SMTP_ENCRYPTION:-none}"
|
2026-09-03 17:45:35 +01:00
|
|
|
volumes:
|
2026-09-04 13:37:07 +01:00
|
|
|
# Only generated state is mounted. The app itself — PHP source and the
|
|
|
|
|
# built frontend — is baked into the image; rebuild to pick up changes:
|
|
|
|
|
# docker compose up -d --build
|
2026-09-03 17:51:56 +01:00
|
|
|
- storage:/var/www/storage
|
2026-09-04 08:40:36 +01:00
|
|
|
depends_on:
|
|
|
|
|
- mailpit
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
|
|
# Development mail catcher (Mailpit — the maintained MailHog successor). ~15 MB,
|
|
|
|
|
# single Go binary, messages held in memory. Web UI: http://localhost:8025
|
|
|
|
|
mailpit:
|
|
|
|
|
image: axllent/mailpit:v1.31
|
|
|
|
|
ports:
|
|
|
|
|
- "8025:8025" # web UI + REST API
|
|
|
|
|
- "1025:1025" # SMTP (also reachable in-network as mailpit:1025)
|
2026-09-03 17:45:35 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
storage:
|