Compare commits

..

3 commits

Author SHA1 Message Date
Renovate Bot
5ce3a5a133 chore(deps): update renovate/renovate docker tag to v42
Some checks reported errors
continuous-integration/drone/push Build was killed
2025-12-10 23:16:15 +00:00
acd6d79efe Merge pull request 'Perform migrations in entrypoint' (#268) from perform-migration-on-startup into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #268
Reviewed-by: moritz <moritz@noreply.git.local-it.org>
2025-12-10 23:36:12 +01:00
280f024602 run migrations via entrypoint script
All checks were successful
continuous-integration/drone/push Build is passing
2025-12-10 23:26:34 +01:00
4 changed files with 12 additions and 3 deletions

View file

@ -166,7 +166,7 @@ environment:
steps: steps:
- name: renovate - name: renovate
image: renovate/renovate:42.42 image: renovate/renovate:42.43
environment: environment:
RENOVATE_CONFIG_FILE: "renovate_backend_config.js" RENOVATE_CONFIG_FILE: "renovate_backend_config.js"
RENOVATE_TOKEN: RENOVATE_TOKEN:

View file

@ -90,4 +90,4 @@ USER nobody
# above and adding an entrypoint. See https://github.com/krallin/tini for details # above and adding an entrypoint. See https://github.com/krallin/tini for details
# ENTRYPOINT ["/tini", "--"] # ENTRYPOINT ["/tini", "--"]
CMD ["/app/bin/server"] ENTRYPOINT ["/app/bin/docker-entrypoint.sh"]

View file

@ -255,7 +255,7 @@ For testing the production Docker build locally:
docker compose -f docker-compose.prod.yml up docker compose -f docker-compose.prod.yml up
``` ```
5. **Run database migrations:** 5. **Database migrations run automatically** on app start. For manual migration:
```bash ```bash
docker compose -f docker-compose.prod.yml exec app /app/bin/mv eval "Mv.Release.migrate" docker compose -f docker-compose.prod.yml exec app /app/bin/mv eval "Mv.Release.migrate"
``` ```

View file

@ -0,0 +1,9 @@
#!/bin/sh
set -e
echo "==> Running database migrations..."
/app/bin/migrate
echo "==> Starting application..."
exec /app/bin/server