Skip to content

Instantly share code, notes, and snippets.

@romaricdrigon
Created August 27, 2020 14:36
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romaricdrigon/17976a87dd38ca57e7f40322966dc041 to your computer and use it in GitHub Desktop.
Save romaricdrigon/17976a87dd38ca57e7f40322966dc041 to your computer and use it in GitHub Desktop.
Using Mutagen Compose
version: '3.7'
volumes:
appdata: ~
code: ~
services:
php:
volumes:
- code:/var/www/html
- appdata:/var/www/html/var/cache
- appdata:/var/www/html/var/log
# Setting up Mutagen synchronization
x-mutagen:
sync:
defaults:
ignore:
vcs: true
permissions:
defaultFileMode: 0644
defaultDirectoryMode: 0755
symlink:
mode: "posix-raw" # Required with Symfony
code:
alpha: "."
beta: "volume://code"
mode: "two-way-resolved"
ignore:
paths:
- "/var/cache"
- "/var/log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment