I have this docker-compose.yml
version: '3'
services:
wordpress_db:
restart: unless-stopped
build:
context: ./db
environment:
MYSQL_USER: ${WP_DB_USER}
MYSQL_PASSWORD: ${WP_DB_USER_PASSWORD}
MYSQL_ROOT_PASSWORD: ${WP_DB_USER_PASSWORD}
MYSQL_DATABASE: ${WP_DB_NAME}
ports:
- 3306:3306
This is my dockerfile
FROM mysql:5.7
COPY ./smartcom_wp_db.sql /docker-entrypoint-initdb.d/smartcom_wp_db.sql
What the weird thing is , I actually got it to work before. All my tables has been created and everything , all was a-ok.
But now after all mocking around.. And rebirthed it back to the above configuration. For some reason only a few tables are now created? I tried removing all the images , containers and recreating the image and container.
What is going on? I have like 33 tables inside the .sql file and now only 11 are being created. Im just pulling my hair out. What could it suddenly not work properly????