Revert "docker-swarm-review"

This reverts commit 49d2697ef4c5047934a642b0df656c5112d37509.
This commit is contained in:
2026-05-13 15:27:11 +08:00
parent 95a34b2f89
commit da02c6a994
128 changed files with 0 additions and 13062 deletions

View File

@@ -1,36 +0,0 @@
# crm1环境下 部署 mysql
env $(cat ./env_crm1 | xargs) envsubst < ./docker-compose.yml | docker stack deploy --compose-file - crm1_mysql
[mysqladmin]
user=
[mysqld]
skip_name_resolve
explicit_defaults_for_timestamp
basedir=/opt/bitnami/mysql
port=3306
tmpdir=/opt/bitnami/mysql/tmp
socket=/opt/bitnami/mysql/tmp/mysql.sock
pid_file=/opt/bitnami/mysql/tmp/mysqld.pid
max_allowed_packet=16M
bind_address=0.0.0.0
log_error=/opt/bitnami/mysql/logs/mysqld.log
slow_query_log=0
slow_query_log_file=/opt/bitnami/mysql/logs/mysqld.log
long_query_time=10
character_set_server=utf8mb4
collation_server=utf8mb4_unicode_ci
plugin_dir=/opt/bitnami/mysql/lib/plugin
[client]
port=3306
socket=/opt/bitnami/mysql/tmp/mysql.sock
default_character_set=utf8mb4
plugin_dir=/opt/bitnami/mysql/lib/plugin
[manager]
port=3306
socket=/opt/bitnami/mysql/tmp/mysql.sock
pid_file=/opt/bitnami/mysql/tmp/mysqld.pid

View File

@@ -1,42 +0,0 @@
version: '3.8'
networks:
default:
name: ${NAMESPACE}
external: true
services:
db:
image: docker.io/bitnami/mysql:8.0
ports:
- '${NODE_PORT}:3306'
environment:
- TZ=Asia/Shanghai
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_ENABLE_SLOW_QUERY=0
- MYSQL_LONG_QUERY_TIME=10
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_AUTHENTICATION_PLUGIN=mysql_native_password
volumes:
- 'data_db:/bitnami/mysql/data'
healthcheck:
test: ['CMD', '/opt/bitnami/scripts/mysql/healthcheck.sh']
interval: 15s
timeout: 5s
retries: 6
configs:
- source: custome_config
target: /opt/bitnami/mysql/conf/my_custom.cnf
deploy:
placement:
constraints:
- node.labels.${NAMESPACE}_mysql==1
volumes:
data_db:
driver: local
configs:
custome_config:
external: true
name: ${CUSTOME_CONFIG}

View File

@@ -1,7 +0,0 @@
NAMESPACE=review
NODE_PORT=3306
MYSQL_USER=gkxl650
MYSQL_PASSWORD=gkxl650
MYSQL_ROOT_PASSWORD=gkxl650
MYSQL_DATABASE=zd_rescue
CUSTOME_CONFIG=review_mysql_conf_v1