add: default docker-compose files for each database type

This commit is contained in:
2025-12-05 13:00:15 -05:00
parent 05b5491665
commit 71ffd82dab
5 changed files with 90 additions and 0 deletions

View File

@@ -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

22
docker/compose.mysql.yml Normal file
View File

@@ -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

23
docker/compose.pgsql.yml Normal file
View File

@@ -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

View File

@@ -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

12
docker/compose.sqlite.yml Normal file
View File

@@ -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