forked from slopukhov/magento-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmutagen.yml
49 lines (44 loc) · 1.48 KB
/
mutagen.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
# Set up the Mutagen service and code volume before creating sessions.
beforeCreate:
- bash init_project
- docker-compose up --build --force-recreate --detach app
# Set up the main services (app, db, redis, elastic) after creating sessions. At this point, sessions will
# have been established and code pushed to the shared volume.
# Specific service will be up and run during install phase
afterCreate:
- docker-compose pull
- docker-compose up --build --detach
- bash install-magento.sh
# Pause services after pausing sessions.
afterPause:
- docker-compose stop
# Resume services before resume sessions.
beforeResume:
- docker-compose start
# Tear down all services and remove the code volume after terminating sessions.
beforeTerminate:
- docker-compose down --volumes --remove-orphans
# Define common utility commands.
commands:
xdebug-enable: docker-compose exec app magento xdebug-enable && docker-compose restart app web
xdebug-disable: docker-compose exec app magento xdebug-disable && docker-compose restart app web
logs: docker-compose logs --follow
# Synchronize code to the shared Docker volume via the Mutagen service.
sync:
defaults:
flushOnCreate: true
ignore:
vcs: true
symlink:
mode: ignore
permissions:
defaultFileMode: 0666
defaultDirectoryMode: 0777
code:
alpha: "~/www/repos/magento2ce"
beta: "docker://app/var/www/magento2ce"
mode: "two-way-resolved"
ignore:
paths:
- ".idea"
- ".git"