forked from duhon/magento-docker
-
Notifications
You must be signed in to change notification settings - Fork 6
/
mutagen.yml
54 lines (49 loc) · 1.81 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
50
51
52
53
54
# Set up the Mutagen service and code volume before creating sessions.
beforeCreate:
- bash init_project
- docker-compose up --build --force-recreate --detach mutagen
# Set up the main services (monolith, 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 reinstall phase
afterCreate:
- docker-compose pull
- docker-compose up --build --detach
- bash reinstall-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:
logs: docker-compose logs --follow
reindex: docker-compose exec app magento reindex
reinstall: bash reinstall.sh
xdebug-enable: sed -i '' "s|#zend_extension = xdebug.so|zend_extension = xdebug.so|" ./etc/php/xdebug.ini && docker-compose restart app web
xdebug-disable: sed -i '' "s|zend_extension = xdebug.so|#zend_extension = xdebug.so|" ./etc/php/xdebug.ini && docker-compose restart app web
grpc-server-start-monolith: docker-compose exec app magento grpc
# 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: "/Users/ruslankostiv/projects/livesearch/repos"
beta: "docker://web-mutagen/var/www"
mode: "two-way-resolved"
ignore:
paths:
- ".idea"
- ".git"
- "/magento2ce/vendor"
- "/magento2ce/generated"