-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-sync.yml
90 lines (70 loc) · 4.94 KB
/
docker-sync.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
80
81
82
83
84
85
86
87
88
89
90
version: "2"
options:
# default: docker-compose.yml if you like, you can set a custom location (path) of your compose file like ~/app/compose.yml
# HINT: you can also use this as an array to define several compose files to include. Order is important!
compose-file-path: 'docker-compose.local.yml'
verbose: true
# optional, activate this if you need to debug something, default is false
# IMPORTANT: do not run stable with this, it creates a memory leak, turn off verbose when you are done testing
# verbose: false
# optional, default auto, can be docker-sync, thor or auto and defines how the sync will be invoked on the cli. Mostly depending if your are using docker-sync solo, scaffolded or in development ( thor )
# cli_mode: 'auto'
# optional, maximum number of attempts for unison waiting for the success exit status. The default is 5 attempts (1-second sleep for each attempt). Only used in unison.
# max_attempt: 5
# optional, default: pwd, root directory to be used when transforming sync src into absolute path, accepted values: pwd (current working directory), config_path (the directory where docker-sync.yml is found)
# project_root: 'pwd'
syncs:
clark-dev-sync:
# enable terminal_notifier. On every sync sends a Terminal Notification regarding files being synced. ( Mac Only ).
# good thing in case you are developing and want to know exactly when your changes took effect.
# be aware in case of unison this only gives you a notification on the initial sync, not the syncs after changes.
notify_terminal: true
# host_disk_mount_mode: 'cached' # see https://docs.docker.com/docker-for-mac/osxfs-caching/#cached
# other unison options can also be specified here, which will be used when run under osx,
# and ignored when run under linux
# which folder to watch / sync from - you can use tilde (~), it will get expanded. Be aware that the trailing slash makes a difference
# if you add them, only the inner parts of the folder gets synced, otherwise the parent folder will be synced as top-level folder
src: './'
# when a port of a container is exposed, on which IP does it get exposed. Localhost for docker for mac, something else for docker-machine
# default is 'auto', which means, your docker-machine/docker host ip will be detected automatically. If you set this to a concrete IP, this ip will be enforced
# sync_host_ip: 'auto'
# should be a unique port this sync instance uses on the host to offer the rsync service on
# do not use this for unison - not needed there
# sync_host_port: 10871
# optional, a list of excludes. These patterns will not be synced
# see http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#ignore for the possible syntax and see sync_excludes_type below
sync_excludes: [".git"]
# use this to change the exclude syntax.
# Path: you match the exact path ( nesting problem )
# Name: If a file or a folder does match this string ( solves nesting problem )
# Regex: Define a regular expression
# none: You can define a type for each sync exclude, so sync_excludes: ['Name .git', 'Path Gemlock']
#
# for more see http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#pathspec
# sync_excludes_type: 'Name'
# optional: use this to switch to rsync verbose mode
# sync_args: '-v'
# optional, default can be either rsync or unison See Strategies in the wiki for explanation
# sync_strategy: 'unison'
# this does not user groupmap but rather configures the server to map
# optional: usually if you map users you want to set the user id of your application container here
# sync_userid: '5000'
# optional: usually if you map groups you want to set the group id of your application container here
# this does not user groupmap but rather configures the server to map
# this is only available for unison/rsync, not for d4m/native (default) strategies
# sync_groupid: '6000'
# defines how sync-conflicts should be handled. With default it will prefer the source with --copyonconflict
# so on conflict, pick the one from the host and copy the conflicted file for backup
# sync_prefer: 'default'
# optional, a list of regular expressions to exclude from the fswatch - see fswatch docs for details
# IMPORTANT: this is not supported by native_osx
# watch_excludes: ['.*/.git', '.*/node_modules']
# optional: use this to switch to fswatch verbose mode
# watch_args: '-v'
# monit can be used to monitor the health of unison in the native_osx strategy and can restart unison if it detects a problem
# optional: use this to switch monit monitoring on
# monit_enable: false
# optional: use this to change how many seconds between each monit check (cycle)
# monit_interval: 5
# optional: use this to change how many consecutive times high cpu usage must be observed before unison is restarted
# monit_high_cpu_cycles: 2