This repository has been archived by the owner on Dec 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
vagrant.yml
79 lines (74 loc) · 4.04 KB
/
vagrant.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Sync folders configuration
synced_folders:
# vboxsf - native VirtualBox method, cross-platform, convenient and reliable, terribly slow
# nfs: better performance and convenience on Mac
# nfs2: optimized nfs settings, experimental (default on Mac)
# smb: better performance and convenience on Windows. Requires Vagrant to be run with admin privileges (not recommended).
# smb2: does not require running vagrant as admin (default on Windows).
# rsync: best performance, cross-platform platform, one-way only
# Run `vagrant rsync-auto` to start auto sync.
# When using rsync sync type the "rsync_folders" list below is mandatory.
# vboxsf: best compatibility and ease of setup, but poor performance.
# default: defaults to nfs2 on Mac and smb2 on Windows.
# '': disable synced folders. Useful in case you want to use 'individual_mounts' option below.
type: 'default'
# smb_user, smb_password - The username and password used for authentication to mount the SMB mount.
# This is usually your Windows username and password, unless you created a dedicated user for vagrant.
# If using the 'smb2' type above the user and share will be configured automatically.
smb_username: 'vagrant'
smb_password: 'P@ssW0rd1!'
# Create smb share on vagrant up (if type smb2). Set to false if you want to or already created the user and the smb share manually.
# If false, the share name should be equal to the directory name in which Vagrantfile is located.
smb2_auto: true
# List of folders to sync with rsync. These should be subfolder names within the <Projects> folder (e.g. "drupal7")
# Uncomment and add folders per the example below as neccessary.
# Note: you'll have to run `vagrant rsync-auto` in the background to keep the files in sync as you make changes
rsync_folders:
#- "projectA" # rsync projectA folder
#- "projectB" # rsync projectB folder
#- "" # rsync the whole <Projects> folder. WARNING: don't do this if your <Projects> folder is big.
# Coalescing threshold in seconds for https://github.com/smerrill/vagrant-gatling-rsync
rsync_latency: 0.5
# Start rsync-auto automatically (Mac only for now)
rsync_auto: true
# Patterns excluded from rsync. Passed as --exclude <pattern> to rsync.
rsync_exclude:
- ".git/"
#- "files/"
# List of folders to mount individually. This is really only needed in the case where you want a container to write
# something back to the Host OS. If that describes your situation, use type = vboxsf. If you just want more control
# over what's mounted, go with type = nfs, which is much faster.
individual_mounts:
#- location: './logs'
# mount: '/home/docker/logs'
# type: 'vboxsf'
# options: 'uid=501,gid=20'
#- location: './logs'
# mount: '/home/docker/logs'
# type: 'nfs'
# options: 'nolock,vers=3,tcp'
# VirtualBox VM settings
v.gui: false # Set to true for debugging. Will unhide VM's primary console screen.
v.memory: 1024 # Memory settings.
v.cpus: 1 # CPU settings. VirtualBox works much better with a single CPU.
# Network settings
ip:
# The default box private network IP is 192.168.10.10
primary: 192.168.10.10
# Uncomment lines below to map additional IP addresses for use with multiple projects.
# Project specific `<IP>:<port>` mapping for containers is done in via docker-compose in `docker-compose.yml`
additional:
#- 192.168.10.11
#- 192.168.10.12
#- 192.168.10.13
# Registry authentication. If your machine uses a private image, you must log in
# to the registry before running docker-machine up. This is especially useful
# when combined with compose_autostart: true.
docker_registry_auth: false
# Automatically start containers if docker-compose.yml is present in the current directory (default: false).
compose_autostart: false
# vhost-proxy (optional, enabled)
# Use a reverse proxy to map host name to containers.
# This is an alternative to using dedicated IP addresses in the 'hosts' section above.
# Containers must define a "VIRTUAL_HOST" environment variable to be recognized and routed by the vhost-proxy.
vhost_proxy: true