Skip to content

Commit

Permalink
feat: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
snowdream committed Aug 6, 2024
1 parent 4d40540 commit fa2507f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ To help you get started creating a container from this image you can either use
docker run -d \
--name=mariadb \
-e TZ=Asia/Shanghai \
-e MARIADB_ROOT_PASSWORD="password" \
-p 3306:3306 \
--restart unless-stopped \
snowdreamtech/mariadb:latest
```
Expand All @@ -26,7 +28,10 @@ docker run -d \
docker run -d \
--name=mariadb \
-e TZ=Asia/Shanghai \
-v /path/to/data:/path/to/data \
-e MARIADB_ROOT_PASSWORD="password" \
-e MARIADB_PORT=3306 \
-p 3306:3306 \
-v /path/to/data:/var/lib/mysql \
--restart unless-stopped \
snowdreamtech/mariadb:latest
```
Expand All @@ -44,6 +49,9 @@ services:
container_name: mariadb
environment:
- TZ=Asia/Shanghai
- MARIADB_ROOT_PASSWORD="password"
ports:
- 3306:3306
restart: unless-stopped
```

Expand All @@ -58,8 +66,12 @@ services:
container_name: mariadb
environment:
- TZ=Asia/Shanghai
- MARIADB_ROOT_PASSWORD="password"
- MARIADB_PORT=3306
volumes:
- /path/to/data:/path/to/data
- /path/to/data:/var/lib/mysql
ports:
- 3306:3306
restart: unless-stopped
```

Expand Down

0 comments on commit fa2507f

Please sign in to comment.