-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/#15_belljun3395
- Loading branch information
Showing
5 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: '3.1' | ||
services: | ||
few-mysql: | ||
container_name: few-mysql8 | ||
image: mysql/mysql-server:8.0.27 | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=root | ||
- MYSQL_ROOT_HOST=% | ||
- TZ=Asia/Seoul | ||
command: [ "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--lower_case_table_names=1", "--max_connections=2048", "--wait_timeout=3600" ] | ||
ports: | ||
- "13306:3306" | ||
volumes: | ||
- ./mysql-init.d:/docker-entrypoint-initdb.d | ||
|
||
few-adminer: # mysql web admin | ||
container_name: few-adminer | ||
image: adminer:4 | ||
ports: | ||
- "18080:8080" | ||
environment: | ||
- ADMINER_DEFAULT_SERVER=few-mysql8 | ||
- ADMINER_DESIGN=nette | ||
- ADMINER_PLUGINS=tables-filter tinymce | ||
|
13 changes: 13 additions & 0 deletions
13
resources/local-develop-environment/mysql-init.d/00_init.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
CREATE | ||
USER 'few-local'@'localhost' IDENTIFIED BY 'few-local'; | ||
CREATE | ||
USER 'few-local'@'%' IDENTIFIED BY 'few-local'; | ||
|
||
GRANT ALL PRIVILEGES ON *.* TO | ||
'few-local'@'localhost'; | ||
GRANT ALL PRIVILEGES ON *.* TO | ||
'few-local'@'%'; | ||
|
||
CREATE | ||
DATABASE api DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | ||
CREATE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
cd ../resources/local-develop-environment | ||
docker-compose down | ||
docker-compose up -d | ||
sleep 10 |