SQL files under docker-entrypoint-initdb.d executed but tables not created #1227
Closed
SimoneGiusso
started this conversation in
General
Replies: 2 comments 3 replies
-
Compose works really hard to keep and re-use volumes between runs (including and especially "anonymous" volumes that aren't specified in the file, but are specified in the images in use), which is probably what you're running into. Have you tried |
Beta Was this translation helpful? Give feedback.
2 replies
-
Ok I got it, I forgot the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to the documentation running
docker compose
on this yaml file:should initialise:
primary-server with init.sql.
However it does not happen even if the file is correctly mounted:
Ii tried, to delete/re build the images, delete all the volumes but nothing. The
init.sql
script is not executed.Beta Was this translation helpful? Give feedback.
All reactions