Skip to content

Commit 2e14f02

Browse files
committed
fix: prevent to store binlogs data for more than 3 days
1 parent 7256d6d commit 2e14f02

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docker-compose.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22
wp-db:
33
restart: unless-stopped
44
image: mysql:8
5-
command: 'mysqld --mysql-native-password=ON'
5+
command: "mysqld --mysql-native-password=ON --binlog_expire_logs_seconds=259200"
66
volumes:
77
- mysql-data:/var/lib/mysql
88
- ./data:/data/
@@ -23,12 +23,12 @@ services:
2323
- local-private-net
2424
- ac-network
2525
healthcheck:
26-
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
27-
interval: 5s
28-
timeout: 10s
29-
retries: 30
26+
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
27+
interval: 5s
28+
timeout: 10s
29+
retries: 30
3030
cap_add:
31-
- SYS_NICE # CAP_SYS_NICE
31+
- SYS_NICE # CAP_SYS_NICE
3232
php:
3333
restart: ${DOCKER_PHP_RESTART:-unless-stopped}
3434
build:
@@ -150,4 +150,3 @@ networks:
150150
volumes:
151151
mysql-data:
152152
wordpress-src:
153-

0 commit comments

Comments
 (0)