+
Skip to content

Use docker compose cp to copy database backups into the database container. #242

@megri

Description

@megri

I recently noticed when doing a divio project pull db <live|test> that having the project directory mounted at /app in the database container is required for the script to succeed (I had removed this line from my docker-compose.yml-file as it looked like it was redundant.)

Instead of expecting this directory to be present, the downloaded database backup could be copied directly to the running container with docker compose cp. This would likely be less brittle than the volume mount.

Metadata

Metadata

Assignees

No one assigned

    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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载