Skip to content

Bug: volume caching files in dev #17

@nrsa222

Description

@nrsa222

Issue

In docker-compose.yml there is a named Docker volume mounted on the /public/cache directory and bind-mounting the public directory:

volumes:
      - ./app:/app
      - ./public:/public
      - cache:/public/cache
      - ./xml:/xml
      - vendor:/vendor

Docker is mounting the local ./public to /public and then overwriting /public/cache with the named volume cache:. Anything that gets written into /public/cache persists across container rebuilds and will not refresh unless you remove the docker volume with docker compose down -v.

Proposed solution

  • create override compose file to re-write or override the named volumes for dev instances

-or-

  • set up base compose to function for production env
  • Add overrides for dev env
  • Update overrides for CI

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions