Docker: Add mariadb note to docker-compose.yml examples #1680
see https://github.com/photoprism/photoprism/discussions/1680
This commit is contained in:
parent
57ba7a2868
commit
a94f5f3510
7 changed files with 14 additions and 7 deletions
|
@ -119,8 +119,9 @@ services:
|
|||
- seccomp:unconfined
|
||||
- apparmor:unconfined
|
||||
command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
||||
## Never store database files on a shared network drive or open them with two server instances at the same time:
|
||||
volumes:
|
||||
- "./database:/var/lib/mysql" # never remove
|
||||
- "./database:/var/lib/mysql" # Important, don't remove
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: insecure
|
||||
MYSQL_DATABASE: photoprism
|
||||
|
|
|
@ -117,8 +117,9 @@ services:
|
|||
- seccomp:unconfined
|
||||
- apparmor:unconfined
|
||||
command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
||||
## Never store database files on a shared network drive or open them with two server instances at the same time:
|
||||
volumes:
|
||||
- "./mariadb:/config" # never remove
|
||||
- "./mariadb:/config" # Important, don't remove
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: insecure
|
||||
MYSQL_DATABASE: photoprism
|
||||
|
|
|
@ -195,8 +195,9 @@ services:
|
|||
- seccomp:unconfined
|
||||
- apparmor:unconfined
|
||||
command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
||||
## Never store database files on a shared network drive or open them with two server instances at the same time:
|
||||
volumes:
|
||||
- "./database:/var/lib/mysql" # never remove
|
||||
- "./database:/var/lib/mysql" # Important, don't remove
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: "_admin_password_"
|
||||
MYSQL_DATABASE: "photoprism"
|
||||
|
|
|
@ -120,8 +120,9 @@ services:
|
|||
- seccomp:unconfined
|
||||
- apparmor:unconfined
|
||||
command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
||||
## Never store database files on a shared network drive or open them with two server instances at the same time:
|
||||
volumes:
|
||||
- "./database:/var/lib/mysql" # never remove
|
||||
- "./database:/var/lib/mysql" # Important, don't remove
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: insecure
|
||||
MYSQL_DATABASE: photoprism
|
||||
|
|
|
@ -100,8 +100,9 @@ services:
|
|||
## --lower-case-table-names=1 stores tables in lowercase and compares names in a case-insensitive manner
|
||||
## see https://mariadb.com/kb/en/server-system-variables/#lower_case_table_names
|
||||
command: mysqld --lower-case-table-names=1 --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
||||
## Never store database files on a shared network drive or open them with two server instances at the same time:
|
||||
volumes:
|
||||
- "mariadb_data:/var/lib/mysql" # never remove
|
||||
- "mariadb_data:/var/lib/mysql" # Important, don't remove
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: insecure
|
||||
MYSQL_DATABASE: photoprism
|
||||
|
|
|
@ -112,8 +112,9 @@ services:
|
|||
- seccomp:unconfined
|
||||
- apparmor:unconfined
|
||||
command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
||||
## Never store database files on a shared network drive or open them with two server instances at the same time:
|
||||
volumes:
|
||||
- "./database:/var/lib/mysql" # never remove
|
||||
- "./database:/var/lib/mysql" # Important, don't remove
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: insecure
|
||||
MYSQL_DATABASE: photoprism
|
||||
|
|
|
@ -104,8 +104,9 @@ services:
|
|||
## --lower-case-table-names=1 stores tables in lowercase and compares names in a case-insensitive manner
|
||||
## see https://mariadb.com/kb/en/server-system-variables/#lower_case_table_names
|
||||
command: mysqld --lower-case-table-names=1 --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
||||
## Never store database files on a shared network drive or open them with two server instances at the same time:
|
||||
volumes:
|
||||
- "mariadb_data:/var/lib/mysql" # never remove, the named volume "mariadb_data" is defined at the bottom
|
||||
- "mariadb_data:/var/lib/mysql" # Important, don't remove; named volume "mariadb_data" is defined at the bottom
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: insecure
|
||||
MYSQL_DATABASE: photoprism
|
||||
|
|
Loading…
Reference in a new issue