【从零开始配置VPS】03:MariaDB

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
version: "2.1"
services:
mariadb:
image: linuxserver/mariadb:latest
container_name: mariadb
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=ROOT_ACCESS_PASSWORD
- TZ=Asia/Shanghai
volumes:
- ./config:/config
ports:
- 3306:3306
restart: unless-stopped
  • mkdir -p ~/db/MariaDB && cd ~/db/MariaDB

  • nano docker-compose.yml

  • sudo docker-compose up -d


【从零开始配置VPS】03:MariaDB
https://occdn.limour.top/2496.html
Author
Limour
Posted on
January 3, 2023
Licensed under