]> source.dussan.org Git - gitea.git/commitdiff
Add missing envionment vars for DB with Docker (#5007)
authorDane <dane.elwell@gmail.com>
Wed, 3 Oct 2018 14:16:48 +0000 (15:16 +0100)
committerLauris BH <lauris@nix.lv>
Wed, 3 Oct 2018 14:16:48 +0000 (17:16 +0300)
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>
docs/content/doc/installation/with-docker.en-us.md

index fb4d64e06ae3a96868b58e85b7c5e89a31cea18e..8d1ff2a1a806f8bb78a1e6e84795ac84b8f1222a 100644 (file)
@@ -105,6 +105,11 @@ services:
     environment:
       - USER_UID=1000
       - USER_GID=1000
++      - DB_TYPE=mysql
++      - DB_HOST=db:3306
++      - DB_NAME=gitea
++      - DB_USER=gitea
++      - DB_PASSWD=gitea
     restart: always
     networks:
       - gitea
@@ -148,6 +153,11 @@ services:
     environment:
       - USER_UID=1000
       - USER_GID=1000
++      - DB_TYPE=postgres
++      - DB_HOST=db:5432
++      - DB_NAME=gitea
++      - DB_USER=gitea
++      - DB_PASSWD=gitea
     restart: always
     networks:
       - gitea