Commit MetaInfo

修订版4b38ec1928ab48d74fa526f46a5ff938c364bd8d (tree)
时间2022-05-20 23:55:06
作者Erik <erikgronwal@user...>
CommiterErik

Log Message

Regular updates

更改概述

差异

--- a/docker-compose.md
+++ b/docker-compose.md
@@ -15,10 +15,10 @@ version: '2'
1515
1616 services:
1717 web:
18- build: .
18+ build:
1919 # build from Dockerfile
20- context: ./Path
21- dockerfile: Dockerfile
20+ context: ./Path
21+ dockerfile: Dockerfile
2222 ports:
2323 - "5000:5000"
2424 volumes:
@@ -220,7 +220,7 @@ networks:
220220 ### Volume
221221
222222 ```yaml
223-# Mount host paths or named volumes, specified as sub-options to a service
223+# mount host paths or named volumes, specified as sub-options to a service
224224 db:
225225 image: postgres:latest
226226 volumes:
@@ -230,3 +230,15 @@ networks:
230230 volumes:
231231 dbdata:
232232 ```
233+
234+### User
235+
236+```yaml
237+# specifying user
238+user: root
239+```
240+
241+```yaml
242+# specifying both user and group with ids
243+user: 0:0
244+```
Show on old repository browser