v.0 202509191305
This commit is contained in:
8
.env.example
Normal file
8
.env.example
Normal file
@@ -0,0 +1,8 @@
|
||||
MariaDB_NODE_NAME=SVR
|
||||
MARIADB_ROOT_PASSWORD=rootpass
|
||||
MariaDB_GALERA_CLUSTER_ADDRESS=gcomm://192.168.1.200
|
||||
MARIADB_GALERA_CLUSTER_NAME=ktv_mariadb_cluster
|
||||
MARIADB_GALERA_MARIABACKUP_PASSWORD=7BYfrgCw4vmj9vaHZLED
|
||||
MariaDB_GALERA_BOOTSTRAP=yes
|
||||
|
||||
PHPMYADMIN_PORT=8080
|
||||
15
.gitattributes
vendored
Normal file
15
.gitattributes
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# 所有 Shell 腳本用 LF
|
||||
*.sh text eol=lf
|
||||
|
||||
# Docker 設定與腳本
|
||||
Dockerfile text eol=lf
|
||||
*.yaml text eol=lf
|
||||
*.yml text eol=lf
|
||||
|
||||
# Laravel & PHP 設定檔
|
||||
*.conf text eol=lf
|
||||
*.ini text eol=lf
|
||||
.env* text eol=lf
|
||||
|
||||
# 其他你專案內的自定義目錄內腳本
|
||||
docker/** text eol=lf
|
||||
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
data
|
||||
*.cnf
|
||||
.env
|
||||
.DS_Store
|
||||
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
mariadb-galera:
|
||||
image: bitnami/mariadb-galera:latest
|
||||
container_name: ${MariaDB_NODE_NAME}
|
||||
environment:
|
||||
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
|
||||
- MARIADB_GALERA_CLUSTER_BOOTSTRAP=${MariaDB_GALERA_BOOTSTRAP}
|
||||
- MARIADB_GALERA_CLUSTER_NAME=${MARIADB_GALERA_CLUSTER_NAME}
|
||||
- MARIADB_GALERA_MARIABACKUP_PASSWORD=${MARIADB_GALERA_MARIABACKUP_PASSWORD}
|
||||
ports:
|
||||
- "3306:3306"
|
||||
- "4444:4444"
|
||||
- "4567:4567"
|
||||
- "4567:4567/udp"
|
||||
- "4568:4568"
|
||||
volumes:
|
||||
phpmyadmin:
|
||||
image: phpmyadmin/phpmyadmin:latest
|
||||
container_name: phpmyadmin
|
||||
environment:
|
||||
- PMA_HOST=mariadb-galera
|
||||
- PMA_USER=root
|
||||
- PMA_PASSWORD=${MARIADB_ROOT_PASSWORD}
|
||||
ports:
|
||||
- "${PHPMYADMIN_PORT}:80"
|
||||
depends_on:
|
||||
- mariadb-galera
|
||||
Reference in New Issue
Block a user