From 71ffd82dab6f85b12ee0267e54bbb9efc4419f4d Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Fri, 5 Dec 2025 13:00:15 -0500 Subject: [PATCH] add: default docker-compose files for each database type --- docker/compose.mariadb.yml | 22 ++++++++++++++++++++++ docker/compose.mysql.yml | 22 ++++++++++++++++++++++ docker/compose.pgsql.yml | 23 +++++++++++++++++++++++ docker/compose.shared-db.yml | 11 +++++++++++ docker/compose.sqlite.yml | 12 ++++++++++++ 5 files changed, 90 insertions(+) create mode 100644 docker/compose.mariadb.yml create mode 100644 docker/compose.mysql.yml create mode 100644 docker/compose.pgsql.yml create mode 100644 docker/compose.shared-db.yml create mode 100644 docker/compose.sqlite.yml diff --git a/docker/compose.mariadb.yml b/docker/compose.mariadb.yml new file mode 100644 index 0000000..069f651 --- /dev/null +++ b/docker/compose.mariadb.yml @@ -0,0 +1,22 @@ +services: + sermon-notes: + image: gitea.rkprather.com/ryan/sermon-notes:latest + container_name: sermon-notes + hostname: sermon-notes + restart: unless-stopped + env_file: .env + ports: + - ${HTTP_PORT}:80 + volumes: + - ${PWD}/.env:/var/www/html/.env + depends_on: + - db + + db: + image: mariadb + container_name: db + hostname: db + restart: unless-stopped + env_file: .env + volumes: + - ${PWD}/db_data:/var/lib/mysql diff --git a/docker/compose.mysql.yml b/docker/compose.mysql.yml new file mode 100644 index 0000000..afed044 --- /dev/null +++ b/docker/compose.mysql.yml @@ -0,0 +1,22 @@ +services: + sermon-notes: + image: gitea.rkprather.com/ryan/sermon-notes:latest + container_name: sermon-notes + hostname: sermon-notes + restart: unless-stopped + env_file: .env + ports: + - ${HTTP_PORT}:80 + volumes: + - ${PWD}/.env:/var/www/html/.env + depends_on: + - db + + db: + image: mysql + container_name: db + hostname: db + restart: unless-stopped + env_file: .env + volumes: + - ${PWD}/db-data:/var/lib/mysql diff --git a/docker/compose.pgsql.yml b/docker/compose.pgsql.yml new file mode 100644 index 0000000..9b4b69b --- /dev/null +++ b/docker/compose.pgsql.yml @@ -0,0 +1,23 @@ +services: + sermon-notes: + container_name: sermon-notes + image: gitea.rkprather.com/ryan/sermon-notes:latest + hostname: sermon-notes + restart: unless-stopped + env_file: .env + ports: + - ${HTTP_PORT}:80 + volumes: + - ${PWD}/.env:/var/www/html/.env + depends_on: + - db + + db: + image: postgres:17 + container_name: db + hostname: db + restart: unless-stopped + env_file: .env + volumes: + - ${PWD}/db-data:/var/lib/postgresql/data + \ No newline at end of file diff --git a/docker/compose.shared-db.yml b/docker/compose.shared-db.yml new file mode 100644 index 0000000..a9c88c2 --- /dev/null +++ b/docker/compose.shared-db.yml @@ -0,0 +1,11 @@ +services: + sermon-notes: + image: gitea.rkprather.com/ryan/sermon-notes:latest + container_name: sermon-notes + hostname: sermon-notes + restart: unless-stopped + env_file: .env + ports: + - ${HTTP_PORT}:80 + volumes: + - ${PWD}/.env:/var/www/html/.env diff --git a/docker/compose.sqlite.yml b/docker/compose.sqlite.yml new file mode 100644 index 0000000..bbcfb8a --- /dev/null +++ b/docker/compose.sqlite.yml @@ -0,0 +1,12 @@ +services: + sermon-notes: + image: gitea.rkprather.com/ryan/sermon-notes:latest + container_name: sermon-notes + hostname: sermon-notes + restart: unless-stopped + env_file: .env + ports: + - ${HTTP_PORT}:80 + volumes: + - ${PWD}/data:/data + - ${PWD}/.env:/var/www/html/.env