Skip to content

Commit

Permalink
some tweaks for the db container
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Kottke committed Apr 15, 2024
1 parent fd4367f commit bddd8d0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
.git/
# database contents
*.sql
*.sql.gz
*.sql.xz
*.sql.zst

2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
MARIADB_PASSWORD: wavelog # <- Insert a strong password here
volumes:
- wavelog-dbdata:/var/lib/mysql
- ./wavelog-db/init:/docker-entrypoint-initdb.d:ro
- ./wavelog-db/mariadb.cnf:/etc/mysql/conf.d/mariadb.cnf:ro
restart: unless-stopped

wavelog-main:
Expand Down
Empty file added wavelog-db/init/.keep
Empty file.
12 changes: 12 additions & 0 deletions wavelog-db/mariadb.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Project specific config file for MariaDB server.
# Place all setting overriding the default values in here.
# This file is linked to the container as a volume


# InnoDB creates tables in file-per-table tablespaces by default. This behavior
# is controlled by the innodb_file_per_table variable.
# Disabling innodb_file_per_table causes InnoDB to create tables in the system
# tablespace.
[mysqld]
innodb_file_per_table=ON

0 comments on commit bddd8d0

Please sign in to comment.