Skip to content

Commit

Permalink
feat: Change mysql image (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucan-lab committed Apr 30, 2024
1 parent 5874fb1 commit 50a6713
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ http://localhost
### db container

- Base image
- [mysql/mysql-server](https://hub.docker.com/r/mysql/mysql-server):8.0
- [mysql](https://hub.docker.com/_/mysql):8.0

### mailpit container

Expand Down
8 changes: 2 additions & 6 deletions infra/docker/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
FROM mysql/mysql-server:8.0
FROM mysql:8.0

ENV TZ=UTC

RUN <<EOF
mkdir /var/log/mysql
chown mysql:mysql $_
chmod 777 $_
EOF
COPY ./infra/docker/mysql/*.cnf /etc/mysql/conf.d/
10 changes: 0 additions & 10 deletions infra/docker/mysql/my.cnf
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
[mysqld]
# default
skip-host-cache
skip-name-resolve
datadir = /var/lib/mysql
socket = /var/lib/mysql/mysql.sock
secure-file-priv = /var/lib/mysql-files
user = mysql

pid-file = /var/run/mysqld/mysqld.pid

# character set / collation
character_set_server = utf8mb4
collation_server = utf8mb4_0900_ai_ci
Expand Down

1 comment on commit 50a6713

@vahidalvandi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃憤

Please sign in to comment.