Skip to content

Commit 8b5a86c

Browse files
authored
Merge pull request #8 from Sekiphp/feature/multiple-mysql-support
2 parents 07966fe + be48ba0 commit 8b5a86c

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ services:
8080
- internal
8181
platform: linux/amd64
8282
volumes:
83+
- $APP_DIRECTORY/images/mysql/init:/docker-entrypoint-initdb.d
8384
- mysql:/var/lib/mysql
84-
- ./images/mysql/custom.my.cnf:/etc/mysql/conf.d/custom.my.cnf
85+
- $DOCKER_DIRECTORY/images/mysql/custom.my.cnf:/etc/mysql/conf.d/custom.my.cnf
8586

8687
adminer:
8788
build:

images/mysql/init/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.
2+
3+
!.gitignore

images/mysql/init/custom.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- You can create new databases here, etc....
2+
3+
-- Example:
4+
-- CREATE DATABASE IF NOT EXISTS `another_db`;
5+
-- GRANT ALL ON `another_db`.* TO 'magento'@'%';

0 commit comments

Comments
 (0)