openfun / marsha

:clapper: An opensource LTI Learning Content Management System (LCMS)
MIT License
107 stars 24 forks source link

🧑‍💻(docker) prevent db recreate #2429

Closed kernicPanel closed 11 months ago

kernicPanel commented 11 months ago

Purpose

When we change the ENV_FILE between commands (ie make run, then make test), the docker compose db service is recreated. This leads to lose our development data when we run the tests. Using a dedicated env file for the db service prevents this.

Proposal

Use env.d/db for db service env_file