separate database setup from stack

This commit is contained in:
Yisroel Baum 2026-08-03 10:12:58 +03:00
parent 942ee4e6e7
commit 9510842dc4
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 9 additions and 16 deletions

7
justfile Normal file
View file

@ -0,0 +1,7 @@
set shell := ["bash", "-c"]
default:
@just --list
fresh:
cd backend && php artisan migrate:fresh --seed

View file

@ -11,20 +11,6 @@ processes:
initial_delay_seconds: 1
period_seconds: 2
migrate:
command: php artisan migrate --force
working_dir: ./backend
depends_on:
postgres:
condition: process_healthy
seed:
command: php artisan db:seed --force
working_dir: ./backend
depends_on:
migrate:
condition: process_completed_successfully
mailpit:
command: mailpit --smtp 127.0.0.1:${MAILPIT_SMTP_PORT:-2525} --listen 127.0.0.1:${MAILPIT_UI_PORT:-8025}
readiness_probe:
@ -39,8 +25,8 @@ processes:
command: php artisan serve --host=127.0.0.1 --port=${BACKEND_PORT:-8001}
working_dir: ./backend
depends_on:
seed:
condition: process_completed_successfully
postgres:
condition: process_healthy
mailpit:
condition: process_healthy
readiness_probe: