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:
parent
5a924a46b1
commit
556a0dd38b
|
@ -44,7 +44,7 @@ services:
|
||||||
|
|
||||||
photoprism-db:
|
photoprism-db:
|
||||||
image: mariadb:10.5
|
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:
|
expose:
|
||||||
- "4001"
|
- "4001"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -43,7 +43,7 @@ services:
|
||||||
|
|
||||||
photoprism-db:
|
photoprism-db:
|
||||||
image: mariadb:10.5
|
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:
|
expose:
|
||||||
- "4001"
|
- "4001"
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -58,7 +58,7 @@ services:
|
||||||
# photoprism-db: # Uncomment, if you want to use MariaDB instead of the internal TiDB
|
# photoprism-db: # Uncomment, if you want to use MariaDB instead of the internal TiDB
|
||||||
# image: mariadb:10.5 # Alternatively mysql:8.0
|
# image: mariadb:10.5 # Alternatively mysql:8.0
|
||||||
# restart: unless-stopped
|
# 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:
|
# volumes:
|
||||||
# - "photoprism-database:/var/lib/mysql"
|
# - "photoprism-database:/var/lib/mysql"
|
||||||
# environment:
|
# environment:
|
||||||
|
|
Loading…
Reference in a new issue