mirror of
https://github.com/cytopia/devilbox.git
synced 2025-02-11 13:16:06 +00:00
#105 First draft definition for docker-sync
This commit is contained in:
parent
0543f2da92
commit
49e5152d6d
18
docker-compose-dev.yml
Normal file
18
docker-compose-dev.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
version: '2.1'
|
||||||
|
|
||||||
|
services:
|
||||||
|
php:
|
||||||
|
volumes:
|
||||||
|
- devilbox-intranet-sync:/var/www/default:nocopy
|
||||||
|
- devilbox-data-www-sync:/shared/httpd:nocopy
|
||||||
|
httpd:
|
||||||
|
volumes:
|
||||||
|
- devilbox-intranet-sync:/var/www/default:nocopy
|
||||||
|
- devilbox-data-www-sync:/shared/httpd:nocopy
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
# docker-sync managed volumes
|
||||||
|
devilbox-intranet-sync:
|
||||||
|
external: true
|
||||||
|
devilbox-data-www-sync:
|
||||||
|
external: true
|
63
docker-sync.yml
Normal file
63
docker-sync.yml
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
version: '2'
|
||||||
|
|
||||||
|
|
||||||
|
options:
|
||||||
|
# The path to devilbox docker-compose.yml file
|
||||||
|
compose-file-path: 'docker-compose.yml'
|
||||||
|
|
||||||
|
# The path to your custom docker-compose-dev.yml file
|
||||||
|
compose-dev-file-path: 'docker-compose-dev.yml'
|
||||||
|
|
||||||
|
|
||||||
|
syncs:
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
# Devilbox Intranet
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
devilbox-intranet-sync:
|
||||||
|
# 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: '${DEVILBOX_PATH}/.devilbox/www/'
|
||||||
|
|
||||||
|
# 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: '${NEW_UID}'
|
||||||
|
|
||||||
|
# OS aware sync strategy, default to:
|
||||||
|
# * native_osx under MacOS (native)
|
||||||
|
# * unison under MacOS (docker-machine)
|
||||||
|
# * native docker volume under linux
|
||||||
|
#sync_strategy: 'unison'
|
||||||
|
|
||||||
|
# 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: ['.gitignore', '.git/', '.idea/', '.vscode/']
|
||||||
|
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
# Devilbox Projects
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
devilbox-data-www-sync:
|
||||||
|
# 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: '${HOST_PATH_HTTPD_DATADIR}/'
|
||||||
|
|
||||||
|
# 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: '${NEW_UID}'
|
||||||
|
|
||||||
|
# OS aware sync strategy, default to:
|
||||||
|
# * native_osx under MacOS (native)
|
||||||
|
# * unison under MacOS (docker-machine)
|
||||||
|
# * native docker volume under linux
|
||||||
|
#sync_strategy: 'unison'
|
||||||
|
|
||||||
|
# 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: ['.gitignore', '.git/', '.idea/', '.vscode/']
|
Loading…
x
Reference in New Issue
Block a user