Browse Source

add quotation around ports in docker-compose.yml (#3090)

bibaijin 2 years ago
parent
commit
e2968b4c98
1 changed files with 12 additions and 12 deletions
  1. 12 12
      docs/content/doc/installation/with-docker.en-us.md

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

@@ -39,8 +39,8 @@ services:
39 39
     volumes:
40 40
       - ./gitea:/data
41 41
     ports:
42
-      - 3000:3000
43
-      - 222:22
42
+      - "3000:3000"
43
+      - "222:22"
44 44
 ```
45 45
 
46 46
 ## Custom port
@@ -63,10 +63,10 @@ services:
63 63
     volumes:
64 64
       - ./gitea:/data
65 65
     ports:
66
--      - 3000:3000
67
--      - 222:22
68
-+      - 8080:3000
69
-+      - 2221:22
66
+-      - "3000:3000"
67
+-      - "222:22"
68
++      - "8080:3000"
69
++      - "2221:22"
70 70
 ```
71 71
 
72 72
 ## MySQL database
@@ -89,8 +89,8 @@ services:
89 89
     volumes:
90 90
       - ./gitea:/data
91 91
      ports:
92
-       - 3000:3000
93
-       - 222:22
92
+       - "3000:3000"
93
+       - "222:22"
94 94
 +    depends_on:
95 95
 +      - db
96 96
 +
@@ -128,8 +128,8 @@ services:
128 128
     volumes:
129 129
       - ./gitea:/data
130 130
      ports:
131
-       - 3000:3000
132
-       - 222:22
131
+       - "3000:3000"
132
+       - "222:22"
133 133
 +    depends_on:
134 134
 +      - db
135 135
 +
@@ -171,8 +171,8 @@ services:
171 171
 -      - ./gitea:/data
172 172
 +      - gitea:/data
173 173
     ports:
174
-      - 3000:3000
175
-      - 222:22
174
+      - "3000:3000"
175
+      - "222:22"
176 176
 ```
177 177
 
178 178
 If you are using MySQL or PostgreSQL it's up to you to create named volumes for these containers as well.