louking / webmodules

Apache License 2.0
0 stars 0 forks source link

add flask upgrade to containers on startup #8

Closed louking closed 1 year ago

louking commented 1 year ago

maybe instructions at https://docs.docker.com/engine/reference/commandline/compose_run/ are most relevant

"If you want to remove the container after running while overriding the container’s restart policy, use the --rm flag:

$ docker compose run --rm web python manage.py db upgrade

This runs a database upgrade script, and removes the container when finished running, even if a restart policy is specified in the service configuration."

but also see