mirror of
https://github.com/Dvorinka/Primora.git
synced 2026-10-28 07:41:23 +00:00
Inside the frontend and nginx containers, localhost resolves to ::1 only while their nginx binds IPv4 — the wget healthcheck was refused and both containers reported unhealthy despite serving fine. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
29 lines
745 B
YAML
29 lines
745 B
YAML
# Development overlay — services that must never ship to production.
|
|
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d
|
|
services:
|
|
mailpit:
|
|
image: axllent/mailpit:v1.27.9
|
|
ports:
|
|
- "${MAILPIT_HTTP_PORT}:8025"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8025/ >/dev/null 2>&1 || exit 1"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 10
|
|
restart: unless-stopped
|
|
|
|
auth:
|
|
environment:
|
|
SMTP_HOST: mailpit
|
|
SMTP_PORT: 1025
|
|
depends_on:
|
|
mailpit:
|
|
condition: service_started
|
|
|
|
nginx:
|
|
volumes:
|
|
- ./infra/nginx/mailpit.conf:/etc/nginx/primora-extra/mailpit.conf:ro
|
|
depends_on:
|
|
mailpit:
|
|
condition: service_started
|