[PR #2182] [MERGED] Use sqlite3 database as default for Docker image #16274

Closed
opened 2025-11-02 12:06:29 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2182
Author: @twang2218
Created: 7/19/2017
Status: Merged
Merged: 7/26/2017
Merged by: @lunny

Base: masterHead: change-default-database-to-sqlite3


📝 Commits (1)

  • aa1661b Use sqlite3 database as default for Docker image

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docker/etc/templates/app.ini (+1 -1)

📄 Description

The app.ini template file in the Docker image is currently using mysql as default database engine. However, it's not practical as default. Because,

  1. It require more setup to run gitea, such as:
    • run a mysql instance inside docker, which has to be named as mysql,
    • prepare a database called gitea,
    • and the password of the mysql's root user has to be empty.
  2. People, who are going to use mysql as the database, are more likely provide their own app.ini file, to specify the server address, mysql IP/name, reasonable user & password, etc.

So, my suggestion is that replacing the mysql with sqlite3 as default. So, anyone who just want to simply run the gitea image to get an idea, can just run the image without providing a customized app.ini file or preparing a MySQL server.

Signed-off-by: Tao Wang twang2218@gmail.com


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2182 **Author:** [@twang2218](https://github.com/twang2218) **Created:** 7/19/2017 **Status:** ✅ Merged **Merged:** 7/26/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `change-default-database-to-sqlite3` --- ### 📝 Commits (1) - [`aa1661b`](https://github.com/go-gitea/gitea/commit/aa1661b8658781fed69749effca03ae7d3879bd9) Use sqlite3 database as default for Docker image ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docker/etc/templates/app.ini` (+1 -1) </details> ### 📄 Description The `app.ini` template file in the Docker image is currently using `mysql` as default database engine. However, it's not practical as default. Because, 1. It require more setup to run `gitea`, such as: * run a `mysql` instance inside docker, which has to be named as `mysql`, * prepare a database called `gitea`, * and the password of the `mysql`'s `root` user has to be empty. 2. People, who are going to use `mysql` as the database, are more likely provide their own `app.ini` file, to specify the server address, mysql IP/name, reasonable user & password, etc. So, my suggestion is that replacing the `mysql` with `sqlite3` as default. So, anyone who just want to simply run the `gitea` image to get an idea, can just run the image without providing a customized `app.ini` file or preparing a MySQL server. Signed-off-by: Tao Wang <twang2218@gmail.com> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:06:29 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16274