Skip to content

Add an entry point to populate the mysql database on start #35

@pixeline

Description

@pixeline

Hi!

I would like that on starting the container, if it finds an SQL file in a specific folder, it runs it.
Usually, when using official mariadb / mysql images, I do it by having this volume in my docker-compose for the db service:

volumes:
      - "./data/dumps:/docker-entrypoint-initdb.d"

I tried exactly that with adhocore/docker-lemp:8.0 and it does not seem to work. Is there a way to do that?
Thank you!
Alex.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions