build: run pending Diesel migrations on the Docker development container start

This commit is contained in:
Matouš Volf 2024-08-18 22:51:12 +02:00
parent c8f62bbe98
commit b82b472206
3 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,6 @@ services:
- ./Dioxus.toml:/srv/app/Dioxus.toml
- ./package.json:/srv/app/package.json
- ./package-lock.json:/srv/app/package-lock.json
- ./tailwind.config.js:/srv/app/tailwind.config.js
restart: always
ports: [ "8000:8000" ]
depends_on: [ "db" ]

View File

@ -20,4 +20,4 @@ HEALTHCHECK CMD curl --fail http://localhost:8000 || exit 1
USER 1000:1000
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
CMD sh docker/dev/app/entrypoint.sh

View File

@ -0,0 +1,3 @@
diesel migration run
supervisord -c /etc/supervisor/conf.d/supervisord.conf