summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Hübner <fhuebner@posteo.de>2019-11-13 13:46:46 +0100
committerzeripath <art27@cantab.net>2019-11-13 12:46:46 +0000
commit27ac1d0952fdabaa45409655ea377fe0b1311c3e (patch)
tree1f67f6c237573ca6212f50fbc11e373cac4ba138
parentbe869e8881fcc13c16b260f0e5f6e49e59638b51 (diff)
downloadgitea-27ac1d0952fdabaa45409655ea377fe0b1311c3e.tar.gz
gitea-27ac1d0952fdabaa45409655ea377fe0b1311c3e.zip
add /etc/timezone and /etc/localtime volumes (#8911)
Passing these volumes to the container enable gitea to use hosts localtime and timezone. This is a mandatory change when using the "Setup fail2ban" Guide, but it is not described in the documentation.
-rw-r--r--docs/content/doc/installation/with-docker.en-us.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/content/doc/installation/with-docker.en-us.md b/docs/content/doc/installation/with-docker.en-us.md
index becbc25431..01914a9a2e 100644
--- a/docs/content/doc/installation/with-docker.en-us.md
+++ b/docs/content/doc/installation/with-docker.en-us.md
@@ -51,6 +51,8 @@ services:
- gitea
volumes:
- ./gitea:/data
+ - /etc/timezone:/etc/timezone:ro
+ - /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
@@ -80,6 +82,8 @@ services:
- gitea
volumes:
- ./gitea:/data
+ - /etc/timezone:/etc/timezone:ro
+ - /etc/localtime:/etc/localtime:ro
ports:
- - "3000:3000"
- - "222:22"
@@ -115,6 +119,8 @@ services:
- gitea
volumes:
- ./gitea:/data
+ - /etc/timezone:/etc/timezone:ro
+ - /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
@@ -163,6 +169,8 @@ services:
- gitea
volumes:
- ./gitea:/data
+ - /etc/timezone:/etc/timezone:ro
+ - /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
@@ -209,6 +217,8 @@ services:
volumes:
- - ./gitea:/data
+ - gitea:/data
+ - /etc/timezone:/etc/timezone:ro
+ - /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
@@ -306,6 +316,8 @@ UID/GID as the container values `USER_UID`/`USER_GID`. You should also create th
- gitea
volumes:
- /var/lib/gitea:/data
+ - /etc/timezone:/etc/timezone:ro
+ - /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "127.0.0.1:2222:22"