summaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authorbibaijin <bibaijin@users.noreply.github.com>2017-12-05 14:03:40 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-12-05 14:03:40 +0800
commite2968b4c986c8359da834e8a9dcfea506468a542 (patch)
tree8d61532c829f009ea0a85f98dbeff380cfcc4007 /docs/content
parent03eb47b2161d18a65ab1eb96397cf7138277e452 (diff)
downloadgitea-e2968b4c986c8359da834e8a9dcfea506468a542.tar.gz
gitea-e2968b4c986c8359da834e8a9dcfea506468a542.zip
add quotation around ports in docker-compose.yml (#3090)
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/doc/installation/with-docker.en-us.md24
1 files changed, 12 insertions, 12 deletions
diff --git a/docs/content/doc/installation/with-docker.en-us.md b/docs/content/doc/installation/with-docker.en-us.md
index 3bab0990ff..c41c93288d 100644
--- a/docs/content/doc/installation/with-docker.en-us.md
+++ b/docs/content/doc/installation/with-docker.en-us.md
@@ -39,8 +39,8 @@ services:
volumes:
- ./gitea:/data
ports:
- - 3000:3000
- - 222:22
+ - "3000:3000"
+ - "222:22"
```
## Custom port
@@ -63,10 +63,10 @@ services:
volumes:
- ./gitea:/data
ports:
-- - 3000:3000
-- - 222:22
-+ - 8080:3000
-+ - 2221:22
+- - "3000:3000"
+- - "222:22"
++ - "8080:3000"
++ - "2221:22"
```
## MySQL database
@@ -89,8 +89,8 @@ services:
volumes:
- ./gitea:/data
ports:
- - 3000:3000
- - 222:22
+ - "3000:3000"
+ - "222:22"
+ depends_on:
+ - db
+
@@ -128,8 +128,8 @@ services:
volumes:
- ./gitea:/data
ports:
- - 3000:3000
- - 222:22
+ - "3000:3000"
+ - "222:22"
+ depends_on:
+ - db
+
@@ -171,8 +171,8 @@ services:
- - ./gitea:/data
+ - gitea:/data
ports:
- - 3000:3000
- - 222:22
+ - "3000:3000"
+ - "222:22"
```
If you are using MySQL or PostgreSQL it's up to you to create named volumes for these containers as well.