Mailpit listens on 1025 (smtp) and 8025 (web ui). Backend now depends on it as a healthy dep so dev signups can flush their confirmation emails to mailpit instead of /dev/null.
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
version: "0.5"
|
|
|
|
processes:
|
|
postgres:
|
|
command: postgres -D "$PGDATA" -k "$PGDATA" -c listen_addresses=127.0.0.1
|
|
shutdown:
|
|
signal: 2
|
|
readiness_probe:
|
|
exec:
|
|
command: pg_isready -h "$PGDATA"
|
|
initial_delay_seconds: 1
|
|
period_seconds: 2
|
|
|
|
mailpit:
|
|
command: mailpit --smtp 127.0.0.1:1025 --listen 127.0.0.1:8025
|
|
readiness_probe:
|
|
http_get:
|
|
host: 127.0.0.1
|
|
port: 8025
|
|
path: /
|
|
initial_delay_seconds: 1
|
|
period_seconds: 2
|
|
|
|
backend:
|
|
command: php artisan serve --host=127.0.0.1 --port=8000
|
|
working_dir: ./backend
|
|
depends_on:
|
|
postgres:
|
|
condition: process_healthy
|
|
mailpit:
|
|
condition: process_healthy
|
|
readiness_probe:
|
|
http_get:
|
|
host: 127.0.0.1
|
|
port: 8000
|
|
path: /up
|
|
initial_delay_seconds: 2
|
|
period_seconds: 10
|
|
|
|
vite:
|
|
command: npm run dev
|
|
working_dir: ./frontend/blog_portal
|
|
readiness_probe:
|
|
http_get:
|
|
host: 127.0.0.1
|
|
port: 5173
|
|
path: /
|
|
initial_delay_seconds: 2
|
|
period_seconds: 2
|