separate database setup from stack
This commit is contained in:
parent
942ee4e6e7
commit
9510842dc4
2 changed files with 9 additions and 16 deletions
7
justfile
Normal file
7
justfile
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
set shell := ["bash", "-c"]
|
||||
|
||||
default:
|
||||
@just --list
|
||||
|
||||
fresh:
|
||||
cd backend && php artisan migrate:fresh --seed
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue