Skip to content

Commit

Permalink
Update docker-compose.yml to create todos database (#85)
Browse files Browse the repository at this point in the history
* Update docker-compose.yml to create todos database

* Update README.md

Describe a way to overcome the issue with mysql:latest on Mac ARM processors.
  • Loading branch information
twocs committed Oct 7, 2023
1 parent 71168ef commit 6bd20fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ Feature:
```
cp .env.sample .env
```
2. Start mysql and create database.
2. Start mysql and create database. [^mac]
[^mac]: Regular MySQL Docker images are not built for the new Mac ARM processors. To use a MySQL docker image that works on ARM, you may update [docker-compose.yml#L5](docker-compose.yml#L5) to use a different one, such as `image: "arm64v8/mysql:latest"` instead of `image: "mysql:latest"`. See [Dockerhub arm64v8/mysql](https://hub.docker.com/r/arm64v8/mysql) for more details.
```
docker-compose up -d
```
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ services:
- ${MYSQL_PORT}:3306
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: todos

0 comments on commit 6bd20fe

Please sign in to comment.