Skip to content

[Bug] App services fail on fresh start due to missing migration step in docker-compose setup #897

@distroaryan

Description

@distroaryan

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

  1. git clone https://github.com/hookdeck/outpost.git
  2. cd outpost/examples/docker-compose/
  3. cp .env.example .env
  4. docker-compose -f compose.yml -f compose-rabbitmq.yml -f compose-postgres.yml up

Screenshots

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions