Category : command

I want to run the init.sql file after mysql container has started completely. I am using the following docker compose file. It is saying no /var/initdb/init.sql file with the following compose file. services: mysqldb: container_name: mysql image: mysql restart: always ports: – "3306:3306" volumes: – /mysql-schema :/var/schema – /init :/var/initdb command: sh -c "mysql -u ..

Read more

I’m trying to create a Docker container (using docker-compose) for an application wit Doctrine, the problem is: if I just run the application, it works, but when I try to use the application before I run command ./vendor/bin/doctrine orm:generate-proxies, I get the error: PHP Warning: require(/tmp/__CG__DomainEntitiesAnyEntity.php): failed to open stream: No such file or directory ..

Read more