Use custom Dockerfile instead of mounted config

Signed-off-by: Tilo Spannagel <development@tilosp.de>
This commit is contained in:
Tilo Spannagel 2018-03-21 14:33:03 +01:00
parent 8c86333de9
commit b2e04519ed
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429
28 changed files with 68 additions and 52 deletions

View File

@ -0,0 +1,4 @@
FROM mariadb
#FROM mysql
COPY transaction-isolation.conf /etc/mysql/conf.d/transaction-isolation.conf

View File

@ -1,5 +1,5 @@
[mysqld]
# Set Transaction isolation Level to READ-COMMITED (Required by nextcloud)
# ================================================
# https://docs.nextcloud.com/server/12/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
# https://docs.nextcloud.com/server/13/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
transaction-isolation = READ-COMMITTED

View File

@ -2,12 +2,10 @@ version: '3'
services:
db:
image: mariadb
# image: mysql
build: ./db
restart: always
volumes:
- db:/var/lib/mysql
- ./mysql.conf:/etc/mysql/conf.d/mysql-config.cnf
environment:
- MYSQL_ROOT_PASSWORD=
env_file:

View File

@ -0,0 +1,4 @@
FROM mariadb
#FROM mysql
COPY transaction-isolation.conf /etc/mysql/conf.d/transaction-isolation.conf

View File

@ -1,5 +1,5 @@
[mysqld]
# Set Transaction isolation Level to READ-COMMITED (Required by nextcloud)
# ================================================
# https://docs.nextcloud.com/server/12/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
# https://docs.nextcloud.com/server/13/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
transaction-isolation = READ-COMMITTED

View File

@ -2,12 +2,10 @@ version: '3'
services:
db:
image: mariadb
# image: mysql
build: ./db
restart: always
volumes:
- db:/var/lib/mysql
- ./mysql.conf:/etc/mysql/conf.d/mysql-config.cnf
environment:
- MYSQL_ROOT_PASSWORD=
env_file:

View File

@ -0,0 +1,4 @@
FROM mariadb
#FROM mysql
COPY transaction-isolation.conf /etc/mysql/conf.d/transaction-isolation.conf

View File

@ -1,5 +1,5 @@
[mysqld]
# Set Transaction isolation Level to READ-COMMITED (Required by nextcloud)
# ================================================
# https://docs.nextcloud.com/server/12/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
# https://docs.nextcloud.com/server/13/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
transaction-isolation = READ-COMMITTED

View File

@ -2,12 +2,10 @@ version: '3'
services:
db:
image: mariadb
# image: mysql
build: ./db
restart: always
volumes:
- db:/var/lib/mysql
- ./mysql.conf:/etc/mysql/conf.d/mysql-config.cnf
environment:
- MYSQL_ROOT_PASSWORD=
env_file:

View File

@ -0,0 +1,4 @@
FROM mariadb
#FROM mysql
COPY transaction-isolation.conf /etc/mysql/conf.d/transaction-isolation.conf

View File

@ -1,5 +1,5 @@
[mysqld]
# Set Transaction isolation Level to READ-COMMITED (Required by nextcloud)
# ================================================
# https://docs.nextcloud.com/server/12/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
# https://docs.nextcloud.com/server/13/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
transaction-isolation = READ-COMMITTED

View File

@ -2,12 +2,10 @@ version: '3'
services:
db:
image: mariadb
# image: mysql
build: ./db
restart: always
volumes:
- db:/var/lib/mysql
- ./mysql.conf:/etc/mysql/conf.d/mysql-config.cnf
environment:
- MYSQL_ROOT_PASSWORD=
env_file:

View File

@ -0,0 +1,4 @@
FROM mariadb
#FROM mysql
COPY transaction-isolation.conf /etc/mysql/conf.d/transaction-isolation.conf

View File

@ -0,0 +1,5 @@
[mysqld]
# Set Transaction isolation Level to READ-COMMITED (Required by nextcloud)
# ================================================
# https://docs.nextcloud.com/server/13/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
transaction-isolation = READ-COMMITTED

View File

@ -2,12 +2,10 @@ version: '3'
services:
db:
image: mariadb
# image: mysql
build: ./db
restart: always
volumes:
- db:/var/lib/mysql
- ./mysql.conf:/etc/mysql/conf.d/mysql-config.cnf
environment:
- MYSQL_ROOT_PASSWORD=
env_file:

View File

@ -1,5 +0,0 @@
[mysqld]
# Set Transaction isolation Level to READ-COMMITED (Required by nextcloud)
# ================================================
# https://docs.nextcloud.com/server/12/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
transaction-isolation = READ-COMMITTED

View File

@ -0,0 +1,4 @@
FROM mariadb
#FROM mysql
COPY transaction-isolation.conf /etc/mysql/conf.d/transaction-isolation.conf

View File

@ -0,0 +1,5 @@
[mysqld]
# Set Transaction isolation Level to READ-COMMITED (Required by nextcloud)
# ================================================
# https://docs.nextcloud.com/server/13/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
transaction-isolation = READ-COMMITTED

View File

@ -2,12 +2,10 @@ version: '3'
services:
db:
image: mariadb
# image: mysql
build: ./db
restart: always
volumes:
- db:/var/lib/mysql
- ./mysql.conf:/etc/mysql/conf.d/mysql-config.cnf
environment:
- MYSQL_ROOT_PASSWORD=
env_file:

View File

@ -1,5 +0,0 @@
[mysqld]
# Set Transaction isolation Level to READ-COMMITED (Required by nextcloud)
# ================================================
# https://docs.nextcloud.com/server/12/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
transaction-isolation = READ-COMMITTED

View File

@ -0,0 +1,4 @@
FROM mariadb
#FROM mysql
COPY transaction-isolation.conf /etc/mysql/conf.d/transaction-isolation.conf

View File

@ -0,0 +1,5 @@
[mysqld]
# Set Transaction isolation Level to READ-COMMITED (Required by nextcloud)
# ================================================
# https://docs.nextcloud.com/server/13/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
transaction-isolation = READ-COMMITTED

View File

@ -2,12 +2,10 @@ version: '3'
services:
db:
image: mariadb
# image: mysql
build: ./db
restart: always
volumes:
- db:/var/lib/mysql
- ./mysql.conf:/etc/mysql/conf.d/mysql-config.cnf
environment:
- MYSQL_ROOT_PASSWORD=
env_file:

View File

@ -1,5 +0,0 @@
[mysqld]
# Set Transaction isolation Level to READ-COMMITED (Required by nextcloud)
# ================================================
# https://docs.nextcloud.com/server/12/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
transaction-isolation = READ-COMMITTED

View File

@ -0,0 +1,4 @@
FROM mariadb
#FROM mysql
COPY transaction-isolation.conf /etc/mysql/conf.d/transaction-isolation.conf

View File

@ -0,0 +1,5 @@
[mysqld]
# Set Transaction isolation Level to READ-COMMITED (Required by nextcloud)
# ================================================
# https://docs.nextcloud.com/server/13/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
transaction-isolation = READ-COMMITTED

View File

@ -2,12 +2,10 @@ version: '3'
services:
db:
image: mariadb
# image: mysql
build: ./db
restart: always
volumes:
- db:/var/lib/mysql
- ./mysql.conf:/etc/mysql/conf.d/mysql-config.cnf
environment:
- MYSQL_ROOT_PASSWORD=
env_file:

View File

@ -1,5 +0,0 @@
[mysqld]
# Set Transaction isolation Level to READ-COMMITED (Required by nextcloud)
# ================================================
# https://docs.nextcloud.com/server/12/admin_manual/configuration_database/linux_database_configuration.html#database-read-commited-transaction-isolation-level
transaction-isolation = READ-COMMITTED