Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 19ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
p

phpmyadmin

Recently created Least recently created Recently updated Least recently updated

timmy / MySQL 與 phpMyAdmin 容器部署

Last active 5 hours ago container database docker mysql phpmyadmin

利用 Docker 快速部署 MySQL 資料庫與 phpMyAdmin 管理介面,方便管理及測試資料庫。

1 0 0 1
1 services:
2 mysql:
3 container_name: database_server
4 image: mysql:latest
5 ports:
6 - "3306:3306"
7 environment:
8 MYSQL_ROOT_PASSWORD: StrongRootPass123 # MySQL 的根密碼
9 MYSQL_DATABASE: production_db # 要建立的資料庫名稱
10 MYSQL_USER: db_user # 新使用者的名稱