compose.yaml / compose.override.yaml:
- container_name is now ${STACK_NAME:-escapepage}-* (STACK_NAME is a plain var,
not COMPOSE_PROJECT_NAME, so prod keeps its escapepage-* names with no config change)
- every published host port is ${*_PORT:-<current default>}, so prod is unchanged
and a second stack can bind its own (localhost-only) ports
- nginx joins the external nginx_default network so Nginx Proxy Manager can
forward to <stack>-nginx by name
restart.sh:
- scoped to STACK_NAME / COMPOSE_PROJECT_NAME read from docker/.env, so running it
from the test checkout can't touch the prod stack
- host-wide `docker system prune` / `docker builder prune` moved behind --prune-all
Adds docker/.env.test.example and doc/test-environment.md (separate checkout,
env layers, NPM proxy host + Access List IP allowlist, Mercure on test).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
39 lines
825 B
YAML
39 lines
825 B
YAML
services:
|
|
php:
|
|
environment:
|
|
XDEBUG_MODE: "off"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
depends_on:
|
|
- mailer
|
|
# networks:
|
|
# backend:
|
|
# ipv4_address: 172.23.0.10
|
|
|
|
###> doctrine/doctrine-bundle ###
|
|
###< doctrine/doctrine-bundle ###
|
|
|
|
###> symfony/mailer ###
|
|
mailer:
|
|
image: axllent/mailpit
|
|
ports:
|
|
- "${MAILPIT_SMTP_PORT:-1025}:1025"
|
|
- "${MAILPIT_UI_PORT:-8025}:8025"
|
|
environment:
|
|
MP_SMTP_AUTH_ACCEPT_ANY: 1
|
|
MP_SMTP_AUTH_ALLOW_INSECURE: 1
|
|
# networks:
|
|
# backend:
|
|
# ipv4_address: 172.23.0.13
|
|
|
|
# networks:
|
|
# backend:
|
|
# name: escapepage_network
|
|
# driver: bridge
|
|
# ipam:
|
|
# config:
|
|
# - subnet: 172.23.0.0/16
|
|
# gateway: 172.23.0.1
|
|
# attachable: true
|
|
###< symfony/mailer ###
|