6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-04 19:03:39 +00:00

Merge remote-tracking branch 'origin/master' into nightly

This commit is contained in:
Overhang.IO 2023-11-23 09:02:05 +00:00
commit c4cc7279fc
3 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1 @@
[Improvement] When configured with `RUN_MYSQL: true`, run `mysqld` with binlog expiry set to 3 days (rather than the default of 30).

View File

@ -392,7 +392,11 @@ spec:
containers: containers:
- name: mysql - name: mysql
image: {{ DOCKER_IMAGE_MYSQL }} image: {{ DOCKER_IMAGE_MYSQL }}
args: ["mysqld", "--character-set-server=utf8mb3", "--collation-server=utf8mb3_general_ci"] args:
- "mysqld"
- "--character-set-server=utf8mb3"
- "--collation-server=utf8mb3_general_ci"
- "--binlog-expire-logs-seconds=259200"
env: env:
- name: MYSQL_ROOT_PASSWORD - name: MYSQL_ROOT_PASSWORD
value: "{{ MYSQL_ROOT_PASSWORD }}" value: "{{ MYSQL_ROOT_PASSWORD }}"

View File

@ -40,7 +40,11 @@ services:
{% if RUN_MYSQL -%} {% if RUN_MYSQL -%}
mysql: mysql:
image: {{ DOCKER_IMAGE_MYSQL }} image: {{ DOCKER_IMAGE_MYSQL }}
command: mysqld --character-set-server=utf8mb3 --collation-server=utf8mb3_general_ci command: >
mysqld
--character-set-server=utf8mb3
--collation-server=utf8mb3_general_ci
--binlog-expire-logs-seconds=259200
restart: unless-stopped restart: unless-stopped
user: "999:999" user: "999:999"
volumes: volumes: