File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
.internal/templates/services Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1+ # Download base image
2+ FROM ghcr.io/linuxserver/mariadb
3+
4+ # apply stability patches recommended in
5+ #
6+ # https://discord.com/channels/638610460567928832/638610461109256194/825049573520965703
7+ # https://stackoverflow.com/questions/61809270/how-to-discover-why-mariadb-crashes
8+ RUN sed -i.bak \
9+ -e "s/^thread_cache_size/# thread_cache_size/" \
10+ -e "s/^read_buffer_size/# read_buffer_size/" \
11+ /defaults/my.cnf
12+
13+ # EOF
Original file line number Diff line number Diff line change 11mariadb :
2- image : linuxserver/ mariadb
2+ build : ./.templates/ mariadb/.
33 container_name : mariadb
44 environment :
55 - TZ=Etc/UTC
@@ -11,6 +11,7 @@ mariadb:
1111 - MYSQL_PASSWORD=Unset
1212 volumes :
1313 - ./volumes/mariadb/config:/config
14+ - ./volumes/mariadb/db_backup:/backup
1415 ports :
1516 - " 3306:3306"
1617 restart : unless-stopped
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ nextcloud:
1919
2020nextcloud_db :
2121 container_name : nextcloud_db
22- image : ghcr.io/linuxserver /mariadb
22+ build : ./.templates /mariadb/.
2323 restart : unless-stopped
2424 environment :
2525 - TZ=Etc/UTC
@@ -29,7 +29,10 @@ nextcloud_db:
2929 - MYSQL_PASSWORD=Unset # removed during compile
3030 - MYSQL_DATABASE=nextcloud
3131 - MYSQL_USER=nextcloud
32+ ports :
33+ - " 9322:3306"
3234 volumes :
3335 - ./volumes/nextcloud/db:/config
36+ - ./volumes/nextcloud/db_backup:/backup
3437 networks :
3538 - nextcloud_internal
You can’t perform that action at this time.
0 commit comments