Skip to content

Commit

Permalink
update: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
snowdream committed Aug 10, 2024
1 parent 37584fd commit 7255b4e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ docker run -d \
--name=mariadb \
-e TZ=Asia/Shanghai \
-e MARIADB_ROOT_PASSWORD="password" \
-e DISALLOW_ROOT_LOGIN_REMOTELY=0 \
-p 3306:3306 \
--restart unless-stopped \
snowdreamtech/mariadb:latest
Expand All @@ -29,6 +30,11 @@ docker run -d \
--name=mariadb \
-e TZ=Asia/Shanghai \
-e MARIADB_ROOT_PASSWORD="password" \
-e DISALLOW_ROOT_LOGIN_REMOTELY=0 \
-e MARIADB_DATABASE="testdb" \
-e MARIADB_USER="testuser" \
-e MARIADB_PASSWORD="testuserpass" \
-e DISALLOW_USER_LOGIN_REMOTELY=0 \
-e MARIADB_PORT=3306 \
-p 3306:3306 \
-v /path/to/data:/var/lib/mysql \
Expand All @@ -50,6 +56,7 @@ services:
environment:
- TZ=Asia/Shanghai
- MARIADB_ROOT_PASSWORD="password"
- DISALLOW_ROOT_LOGIN_REMOTELY=0
ports:
- 3306:3306
restart: unless-stopped
Expand All @@ -67,6 +74,11 @@ services:
environment:
- TZ=Asia/Shanghai
- MARIADB_ROOT_PASSWORD="password"
- DISALLOW_ROOT_LOGIN_REMOTELY=0
- MARIADB_DATABASE="testdb"
- MARIADB_USER="testuser"
- MARIADB_PASSWORD="testuserpass"
- DISALLOW_USER_LOGIN_REMOTELY=0
- MARIADB_PORT=3306
volumes:
- /path/to/data:/var/lib/mysql
Expand Down

0 comments on commit 7255b4e

Please sign in to comment.