From 29af0926d5466ba10713fba1bec3e8f287641726 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Tue, 25 Oct 2022 22:09:40 -0400 Subject: [PATCH 1/2] Add a note about how to use sqlite3 and docker via docker-compose. --- .../doc/installation/with-docker.en-us.md | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/content/doc/installation/with-docker.en-us.md b/docs/content/doc/installation/with-docker.en-us.md index 895f04804e2bc..7e2e0450c53ad 100644 --- a/docs/content/doc/installation/with-docker.en-us.md +++ b/docs/content/doc/installation/with-docker.en-us.md @@ -98,6 +98,39 @@ services: ## Databases +### SQLite database + +To start Gitea with a SQLite database, apply these changes to the +`docker-compose.yml` file created above. + +```diff +version: "3" + +networks: + gitea: + external: false + +services: + server: + image: gitea/gitea:{{< version >}} + container_name: gitea + environment: + - USER_UID=1000 + - USER_GID=1000 ++ - GITEA__database__DB_TYPE=sqlite3 + restart: always + networks: + - gitea + volumes: + - ./gitea:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "3000:3000" + - "222:22" +``` + + ### MySQL database To start Gitea in combination with a MySQL database, apply these changes to the From 4f920607f89363a05e5792ee78c7640222cb74f2 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Tue, 25 Oct 2022 22:14:45 -0400 Subject: [PATCH 2/2] fix lint --- docs/content/doc/installation/with-docker.en-us.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/content/doc/installation/with-docker.en-us.md b/docs/content/doc/installation/with-docker.en-us.md index 7e2e0450c53ad..27de4170e4cae 100644 --- a/docs/content/doc/installation/with-docker.en-us.md +++ b/docs/content/doc/installation/with-docker.en-us.md @@ -130,7 +130,6 @@ services: - "222:22" ``` - ### MySQL database To start Gitea in combination with a MySQL database, apply these changes to the