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