summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorRichard Coleman <richardcoleman7@icloud.com>2018-02-16 01:56:10 +0000
committerLunny Xiao <xiaolunwen@gmail.com>2018-02-15 19:56:10 -0600
commit869d73a25c1b8c8399f14389916780e72eb792f0 (patch)
treea0eac064ef02e2ea9e9eb0eefedaa60bb2c6c68b /docs
parentb104ab3ca1690f35d0674d3807681390e640e5c8 (diff)
downloadgitea-869d73a25c1b8c8399f14389916780e72eb792f0.tar.gz
gitea-869d73a25c1b8c8399f14389916780e72eb792f0.zip
Add info from #2286, minor fixes to YAML indentation (#3338)
* Add info from #2286, minor fixes to YAML indentation * Add space to make YAML valid again
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/installation/with-docker.en-us.md23
1 files changed, 19 insertions, 4 deletions
diff --git a/docs/content/doc/installation/with-docker.en-us.md b/docs/content/doc/installation/with-docker.en-us.md
index c476391481..efcb56b3e2 100644
--- a/docs/content/doc/installation/with-docker.en-us.md
+++ b/docs/content/doc/installation/with-docker.en-us.md
@@ -28,6 +28,8 @@ the official [install instructions](https://docs.docker.com/compose/install/).
The most simple setup just creates a volume and a network and starts the `gitea/gitea:latest`
image as a service. Since there is no database available one can be initialized using SQLite3.
Create a directory like `gitea` and paste the following content into a file named `docker-compose.yml`.
+Note that the volume should be owned by the user/group with the UID/GID specified in the config file.
+If you don't give the volume correct permissions, the container may not start.
```yaml
version: "2"
@@ -39,6 +41,9 @@ networks:
services:
server:
image: gitea/gitea:latest
+ environment:
+ - USER_UID=1000
+ - USER_GID=1000
restart: always
networks:
- gitea
@@ -65,6 +70,9 @@ networks:
services:
server:
image: gitea/gitea:latest
+ environment:
+ - USER_UID=1000
+ - USER_GID=1000
restart: always
networks:
- gitea
@@ -92,6 +100,9 @@ networks:
services:
server:
image: gitea/gitea:latest
+ environment:
+ - USER_UID=1000
+ - USER_GID=1000
restart: always
networks:
- gitea
@@ -132,14 +143,17 @@ networks:
services:
server:
image: gitea/gitea:latest
+ environment:
+ - USER_UID=1000
+ - USER_GID=1000
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
- ports:
- - "3000:3000"
- - "222:22"
+ ports:
+ - "3000:3000"
+ - "222:22"
+ depends_on:
+ - db
+
@@ -160,7 +174,8 @@ services:
To use named volumes instead of host volumes, define and use the named volume
within the `docker-compose.yml` configuration. This change will automatically
-create the required volume.
+create the required volume. You don't need to worry about permissions with
+named volumes, Docker will deal with that automatically.
```diff
version: "2"