Chg: Container name / Mig: db volumes / Fix: many (Del:
display_startup_errors as php.ini / Add: output_buffering as php.ini / Chg: sql-mode / Add: Dockerfile as MariaDB)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
FROM mariadb:11.3
|
||||
COPY my.cnf /etc/mysql/conf.d/mariadb.cnf
|
||||
COPY init.sql /docker-entrypoint-initdb.d/init.sql
|
||||
@@ -1,2 +1 @@
|
||||
CREATE DATABASE uwuzu;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[mysqld]
|
||||
sql_mode=NO_ENGINE_SUBSTITUTION
|
||||
sql-mode = NO_ENGINE_SUBSTITUTION,NO_AUTO_VALUE_ON_ZERO
|
||||
character-set-server = utf8mb4
|
||||
collation-server = utf8mb4_general_ci
|
||||
|
||||
+5
-5
@@ -3,7 +3,7 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./php/Dockerfile
|
||||
container_name: web
|
||||
container_name: uwuzu-web
|
||||
ports:
|
||||
- "${PUBLIC_PORT}:80"
|
||||
volumes:
|
||||
@@ -17,8 +17,10 @@ services:
|
||||
- devnet
|
||||
|
||||
db:
|
||||
image: mariadb:11.3
|
||||
container_name: mariadb
|
||||
build:
|
||||
context: ./db
|
||||
dockerfile: Dockerfile
|
||||
container_name: uwuzu-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
|
||||
@@ -28,8 +30,6 @@ services:
|
||||
TZ: ${MARIADB_TIME_ZONE}
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
- ./db/my.cnf:/etc/mysql/mariadb.conf.d/99-custom.cnf
|
||||
ports:
|
||||
- "${PUBLIC_MARIADB_PORT}:3306"
|
||||
networks:
|
||||
|
||||
+1
-4
@@ -1,8 +1,5 @@
|
||||
display_errors = Off
|
||||
display_startup_errors = Off
|
||||
log_errors = On
|
||||
error_log = /proc/self/fd/2
|
||||
error_reporting = E_ALL & ~E_WARNING & ~E_NOTICE
|
||||
error_prepend_string =
|
||||
error_append_string =
|
||||
output_buffering = 4096
|
||||
default_charset = "UTF-8"
|
||||
|
||||
Reference in New Issue
Block a user