Describe the bug
When starting the project locally using the instructions provided in README.md, all three app services (api, delivery, log) fail to start because pending database migrations have not been applied.
The app has a pre-run check (PreRun → checkPendingMigrations) that explicitly blocks startup if migrations are pending, but the provided docker-compose setup has no mechanism to run migrations before the app services start.
This is the exact log statement which can be seen in docker logs
pending migrations detected (9 SQL, 3 Redis) — run 'outpost migrate apply' before starting the server
exit status 1
To Reproduce
Steps to reproduce the behavior:
Run these commands in order
git clone https://github.com/hookdeck/outpost.git
cd outpost/examples/docker-compose/
cp .env.example .env
docker-compose -f compose.yml -f compose-rabbitmq.yml -f compose-postgres.yml up
Screenshots
The attached screenshot displays the logs from docker images which clearly proves the above statement and also highlights the solution
Expected behavior
All services start successfully. The api service should be accessible at http://localhost:3333 as mentioned in the README.md file
Additional context
For local development and first-time setup, the current README workflow leads to a non-functional stack unless migrations are manually applied beforehand.
Describe the bug
When starting the project locally using the instructions provided in README.md, all three app services (api, delivery, log) fail to start because pending database migrations have not been applied.
The app has a pre-run check (PreRun → checkPendingMigrations) that explicitly blocks startup if migrations are pending, but the provided docker-compose setup has no mechanism to run migrations before the app services start.
This is the exact log statement which can be seen in docker logs
To Reproduce
Steps to reproduce the behavior:
Run these commands in order
git clone https://github.com/hookdeck/outpost.gitcd outpost/examples/docker-compose/cp .env.example .envdocker-compose -f compose.yml -f compose-rabbitmq.yml -f compose-postgres.yml upScreenshots
The attached screenshot displays the logs from docker images which clearly proves the above statement and also highlights the solution
Expected behavior
All services start successfully. The api service should be accessible at http://localhost:3333 as mentioned in the README.md file
Additional context
For local development and first-time setup, the current README workflow leads to a non-functional stack unless migrations are manually applied beforehand.