You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,41 @@ DevBox can be configured using the `config.yaml` configuration file.
9
9
10
10
11
11
#### VM
12
-
By default, DevBox will create a private network with an automatically assigned IP address. Use `ifconfig` on the VM to determine the IP address. A static IP address for the VM can be given by adding the `ip` property and assigning an address from the [reserved private address space](https://en.wikipedia.org/wiki/Private_network#Private_IPv4_address_spaces). Also the default name for the VM is 'devbox', this can be changed by adding the `name` property. The default hostname for the VM is also 'devbox', this can be changed by adding the `hostname` property.
12
+
By default, the name for the VM is 'devbox', this can be changed by adding the `name` property. The default hostname for the VM is also 'devbox', this can be changed by adding the `hostname` property.
13
13
```yaml
14
-
ip: "192.168.22.18"
15
14
name: vmname
16
15
hostname: vmhostname
17
16
```
18
17
19
18
19
+
#### Network
20
+
By default, DevBox will create a private network with an automatically assigned IP address. Use `ifconfig` on the VM to determine the IP address. To create a bridged (public) network, add a `networks` array with a `type` property of `bridged`.
21
+
```yaml
22
+
networks:
23
+
- type: bridged
24
+
```
25
+
26
+
A static IP address for the VM can also be given by adding an `ip` property and assigning an address from the [reserved private address space](https://en.wikipedia.org/wiki/Private_network#Private_IPv4_address_spaces).
27
+
```yaml
28
+
networks:
29
+
- type: private
30
+
ip: "192.168.178.40"
31
+
```
32
+
33
+
```yaml
34
+
networks:
35
+
- type: bridged
36
+
ip: "192.168.178.40"
37
+
```
38
+
39
+
By default, DevBox will forward ports 80 and 3306 on the guest machine to ports 8000 and 33060 on the host. To forward additional ports, add a `ports` array with `guest` and `host` properties set to the ports you want to forward.
40
+
```yaml
41
+
ports:
42
+
- guest: 443
43
+
host: 44300
44
+
```
45
+
46
+
20
47
#### Folders
21
48
By default, DevBox will share your project folder `.` with the `/vagrant` folder on the guest machine. To share additional folders with the guest machine `map` the host folder `to` the guest folder in the `folders` array.
0 commit comments