Skip to content

Commit

Permalink
chore: promote MariaDB instead of MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan committed Dec 28, 2023
1 parent b5fb59a commit c97b2e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ This repository no longer updates `hyzual/koel`. The latest version is now at [p
Since [Koel supports many databases][koel-requirements] you are free to choose any Docker image that hosts one of those databases.

`koel/docker` (this image) has been tested with MySQL and PostgreSQL.
`koel/docker` (this image) has been tested with MariaDB/MySQL and PostgreSQL.

### Run with docker-compose and MySQL
### Run with docker-compose and MariaDB/MySQL

[docker-compose] is the easiest way to get started. It will start both the database container and this image.
Clone this repository and edit `docker-compose.mysql.yml`. **Make sure to replace passwords !**
Expand Down Expand Up @@ -79,15 +79,15 @@ $ php artisan koel:init --no-assets
docker exec -it <container_name_for_koel> php artisan koel:admin:change-password
```

### Run manually with MySQL
### Run manually with MariaDB/MySQL

Create a docker network. It will be shared by Koel and its database.

```bash
docker network create --attachable koel-net
```

Create a database container. Here we will use [mysql].
Create a database container. Here we will use [mariadb].

```bash
docker run -d --name database \
Expand All @@ -97,7 +97,7 @@ docker run -d --name database \
-e MYSQL_PASSWORD=<koel_password> \
--network=koel-net \
-v koel_db:/var/lib/mysql \
mysql/mysql-server:5.7
mariadb:10.11
```

Create the koel container on the same network so they can communicate
Expand Down Expand Up @@ -224,7 +224,7 @@ Apache's root directory. All koel files will be here. If you `exec` into the con
[koel-env-example]: https://github.com/koel/koel/blob/master/.env.example
[koel-requirements]: https://docs.koel.dev/#/?id=requirements
[koel]: https://koel.dev/
[mysql]: https://hub.docker.com/r/mysql/mysql-server
[mariadb]: https://hub.docker.com/r/mariadb/server
[docker-compose]: https://docs.docker.com/compose/

[docker-pulls-badge]: <https://img.shields.io/docker/pulls/phanan/koel>
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
- ./.env.koel:/var/www/html/.env

database:
image: mysql/mysql-server:5.7
image: mariadb:10.11
env_file:
- .env.dev
environment:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
- search_index:/var/www/html/storage/search-indexes

database:
image: mysql/mysql-server:5.7
image: mariadb:10.11
volumes:
- db:/var/lib/mysql
environment:
Expand Down

0 comments on commit c97b2e5

Please sign in to comment.