Skip to content

Commit 24c5ec7

Browse files
committed
Provide some examples
1 parent 57c3ea6 commit 24c5ec7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/volumes.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ Mount this directory to your local file system in order to add html, js, php, et
1818

1919
**Note:** You can disable the default virtual host and then don't need to mount this directory.
2020

21+
```bash
22+
docker run -d -it \
23+
-v $(pwd)/default:/var/www/default \
24+
-e MAIN_VHOST_ENABLE=1 \
25+
devilbox/nginx-stable
26+
```
27+
2128

2229
## `/shared/httpd/`
2330

@@ -30,6 +37,13 @@ Mount this directory to your local file system in order to add html, js, php, et
3037

3138
**Note:** You can disable mass virtual hosts and then don't need to mount this directory.
3239

40+
```bash
41+
docker run -d -it \
42+
-v $(pwd)/projects:/shared/httpd \
43+
-e MASS_VHOST_ENABLE=1 \
44+
devilbox/nginx-stable
45+
```
46+
3347

3448
## `/etc/httpd-custom.d/`
3549

0 commit comments

Comments
 (0)