🔧 Modify multiple database
This commit is contained in:
@@ -3,8 +3,8 @@ services:
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
environment: # 환경변수
|
||||
MYSQL_MULTIPLE_DATABASES: msaportal,reservation
|
||||
MYSQL_USER: msaportal
|
||||
MYSQL_DATABASE: msaportal
|
||||
MYSQL_PASSWORD: msaportal
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
||||
MYSQL_ROOT_HOST: "%"
|
||||
@@ -14,6 +14,7 @@ services:
|
||||
- --collation-server=utf8mb4_unicode_ci
|
||||
volumes:
|
||||
- "${HOME}/docker-volume/mysql/:/var/lib/mysql"
|
||||
- ./init.sql:/data/application/init.sql
|
||||
ports:
|
||||
- "3306:3306"
|
||||
container_name: mysql
|
||||
|
||||
1
docker-compose/mysql/init.sql
Normal file
1
docker-compose/mysql/init.sql
Normal file
@@ -0,0 +1 @@
|
||||
CREATE DATABASE IF NOT EXISTS reservation;
|
||||
Reference in New Issue
Block a user