Skip to content

Commit 513db27

Browse files
Xiollafriks
authored andcommitted
Add missing envionment vars for DB with Docker (#5007)
Current docs demonstrate how to configure a database container but don't explicitly specify that you should add additional environment variables to the Gitea container to make it use the database. This just demonstrates the changes required. Signed-off-by: Dane Elwell <dane.elwell@ukfast.co.uk>
1 parent 2b8dc17 commit 513db27

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/content/doc/installation/with-docker.en-us.md

+10
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ services:
105105
environment:
106106
- USER_UID=1000
107107
- USER_GID=1000
108+
+ - DB_TYPE=mysql
109+
+ - DB_HOST=db:3306
110+
+ - DB_NAME=gitea
111+
+ - DB_USER=gitea
112+
+ - DB_PASSWD=gitea
108113
restart: always
109114
networks:
110115
- gitea
@@ -148,6 +153,11 @@ services:
148153
environment:
149154
- USER_UID=1000
150155
- USER_GID=1000
156+
+ - DB_TYPE=postgres
157+
+ - DB_HOST=db:5432
158+
+ - DB_NAME=gitea
159+
+ - DB_USER=gitea
160+
+ - DB_PASSWD=gitea
151161
restart: always
152162
networks:
153163
- gitea

0 commit comments

Comments
 (0)