Docker: Start mysqld with --innodb-rollback-on-timeout=ON and --innodb-lock-wait-timeout=120

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-05-10 22:18:01 +02:00
parent 5a924a46b1
commit 556a0dd38b
3 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ services:
photoprism-db:
image: mariadb:10.5
command: mysqld --port=4001 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024
command: mysqld --port=4001 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024 --innodb-rollback-on-timeout=ON --innodb-lock-wait-timeout=120
expose:
- "4001"
volumes:

View file

@ -43,7 +43,7 @@ services:
photoprism-db:
image: mariadb:10.5
command: mysqld --port=4001 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024
command: mysqld --port=4001 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024 --innodb-rollback-on-timeout=ON --innodb-lock-wait-timeout=120
expose:
- "4001"
ports:

View file

@ -58,7 +58,7 @@ services:
# photoprism-db: # Uncomment, if you want to use MariaDB instead of the internal TiDB
# image: mariadb:10.5 # Alternatively mysql:8.0
# restart: unless-stopped
# command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024
# command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1024 --innodb-rollback-on-timeout=ON --innodb-lock-wait-timeout=120
# volumes:
# - "photoprism-database:/var/lib/mysql"
# environment: