c-bless / reveal

This project contains some PowerShell scripts used to collect system configurations or domain information. Furthermore it has a Flask based web application and API to import and analyze the results of collector scripts. It can export collected data to Excel via the Web-Interface or to JSON via API.
1 stars 1 forks source link

Remove static volume from compose file #101

Closed Kavakuo closed 4 days ago

Kavakuo commented 5 days ago

Using the static_volume in the compose file might introduce bugs that appear when the containers are rebuilt.

During the build process of the containers, the contents of static folders are copied into the container. By declaring the static_volume in the docker-compose file, the files inside the container are implicitly copied into the volume during the first start of the container, but only if the volume is empty. After that, the following series of events would cause a problem:

  1. The content of the volume is modified
  2. Containers are rebuilt from scratch
  3. docker compose up
  4. The files in the static volume are still in the state after step 1.

This can only be reset if the volumes are also deleted before step 3, which is quite confusing.