新增wikijs、wiznote的compose示例;新增mariadb、mysql的compose及stack示例;修改部分示例网段
This commit is contained in:
committed by
cloud-init created default user
parent
b73249c50b
commit
00f679a0f6
31
examples/mysql/5/compose/compose.yaml
Normal file
31
examples/mysql/5/compose/compose.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:5.7.44
|
||||
container_name: mysql
|
||||
hostname: mysql
|
||||
restart: always
|
||||
networks:
|
||||
- db_network
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||
- ./data:/var/lib/mysql
|
||||
- ./conf/my.cnf:/etc/mysql/conf.d/my.cnf
|
||||
- ./conf/root.key:/etc/mysql/conf.d/root.key
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD_FILE=/etc/mysql/conf.d/root.key
|
||||
|
||||
networks:
|
||||
db_network:
|
||||
name: db_network
|
||||
external: true
|
||||
# driver: bridge
|
||||
# driver_opts:
|
||||
# encrypted: 'true'
|
||||
# ipam:
|
||||
# driver: default
|
||||
# config:
|
||||
# - subnet: 10.21.22.1/24
|
||||
@@ -11,7 +11,7 @@ services:
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||
- mysql_db:/var/lib/mysql
|
||||
configs:
|
||||
- source: mysql_conf
|
||||
1
examples/mysql/5/stack/root.key
Normal file
1
examples/mysql/5/stack/root.key
Normal file
@@ -0,0 +1 @@
|
||||
6vTWXiZUU5nz7AVCYaCis8GqVF6TZhHH
|
||||
31
examples/mysql/8/compose/compose.yaml
Normal file
31
examples/mysql/8/compose/compose.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.0.37
|
||||
container_name: mysql
|
||||
hostname: mysql
|
||||
restart: always
|
||||
networks:
|
||||
- db_network
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||
- ./data:/var/lib/mysql
|
||||
- ./conf/my.cnf:/etc/mysql/conf.d/my.cnf
|
||||
- ./conf/root.key:/etc/mysql/conf.d/root.key
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD_FILE=/etc/mysql/conf.d/root.key
|
||||
|
||||
networks:
|
||||
db_network:
|
||||
name: db_network
|
||||
external: true
|
||||
# driver: bridge
|
||||
# driver_opts:
|
||||
# encrypted: 'true'
|
||||
# ipam:
|
||||
# driver: default
|
||||
# config:
|
||||
# - subnet: 10.21.22.1/24
|
||||
4
examples/mysql/8/compose/conf/my.cnf
Normal file
4
examples/mysql/8/compose/conf/my.cnf
Normal file
@@ -0,0 +1,4 @@
|
||||
[mysqld]
|
||||
max_connections = 1000
|
||||
character-set-server = utf8mb4
|
||||
collation-server = utf8mb4_unicode_ci
|
||||
@@ -11,7 +11,7 @@ services:
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||
- mysql_db:/var/lib/mysql
|
||||
configs:
|
||||
- source: mysql_conf
|
||||
4
examples/mysql/8/stack/my.cnf
Normal file
4
examples/mysql/8/stack/my.cnf
Normal file
@@ -0,0 +1,4 @@
|
||||
[mysqld]
|
||||
max_connections = 1000
|
||||
character-set-server = utf8mb4
|
||||
collation-server = utf8mb4_unicode_ci
|
||||
1
examples/mysql/8/stack/root.key
Normal file
1
examples/mysql/8/stack/root.key
Normal file
@@ -0,0 +1 @@
|
||||
msQijJXzLmeEfmy3j5nQBn7hsVFbd6F3
|
||||
Reference in New Issue
Block a user