Compare commits

...

2 Commits

Author SHA1 Message Date
aslan 39b050ba83 add gitignore docker system file
Tests & Lint & Deploy to Railway / build (2.7.6, 20.x, 8.3) (push) Successful in 13m34s Details
Tests & Lint & Deploy to Railway / deploy (push) Successful in 36s Details
2024-05-22 16:42:13 +03:00
aslan dada864314 add docker mysql 2024-05-22 16:36:27 +03:00
2 changed files with 24 additions and 1 deletions

5
.gitignore vendored
View File

@ -22,5 +22,8 @@ yarn-error.log
/.phpstorm.meta.php /.phpstorm.meta.php
/_ide_helper.php /_ide_helper.php
/_ide_helper_models.php /_ide_helper_models.php
/public/img/icons/play-button.png
/tabit.sql /tabit.sql
/docker
/docker/db
/docker/db/data

20
docker-compose.yaml Normal file
View File

@ -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'