diff --git a/.gitignore b/.gitignore index 71ff04d..ca62eb1 100644 --- a/.gitignore +++ b/.gitignore @@ -22,5 +22,5 @@ yarn-error.log /.phpstorm.meta.php /_ide_helper.php /_ide_helper_models.php -/public/img/icons/play-button.png /tabit.sql +/docker diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..b760aaf --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,20 @@ +version: '3' + +services: + # MySQL + db: + container_name: mysql8 + image: mysql:8.0 + command: mysqld --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci + environment: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: sandbox + # MYSQL_USER: sandbox_user + # MYSQL_PASSWORD: passpass + MYSQL_ALLOW_EMPTY_PASSWORD: "yes" + ports: + - '3306:3306' + volumes: + - './docker/db/data:/var/lib/mysql' + - './docker/db/my.cnf:/etc/mysql/conf.d/my.cnf' + - './docker/db/sql:/docker-entrypoint-initdb.d'