build: run pending Diesel migrations on the Docker development container start
This commit is contained in:
parent
c8f62bbe98
commit
b82b472206
@ -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" ]
|
||||
|
@ -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
|
||||
|
3
docker/dev/app/entrypoint.sh
Normal file
3
docker/dev/app/entrypoint.sh
Normal file
@ -0,0 +1,3 @@
|
||||
diesel migration run
|
||||
|
||||
supervisord -c /etc/supervisor/conf.d/supervisord.conf
|
Loading…
x
Reference in New Issue
Block a user