- Example of BEAR.Sunday application with Docker (PHP7.4, docker-sync, Mutagen)
- Based on the following contents by gamu1012:
Docker + BEAR.Sundayで開発するときはdocker-syncを使おう - Qiita
hiroki-saito/Container.Sunday: BEAR.SundayをDocker for Macで動かしたときの計測用リポジトリ
- Default Docker
$ docker-compose build
$ docker-compose up
$ docker-compose down
$ rm -rf var/tmp/hal-app
- Docker + docker-sync
$ docker-sync start
$ docker-compose -f docker-compose.docker_sync.yml up -d
$ docker-compose down
$ docker-sync stop
$ rm -rf var/tmp/hal-app
- Docker + Mutagen
$ mutagen compose -f docker-compose.mutagen.yml up -d
$ mutagen compose -f docker-compose.mutagen.yml down
$ rm -rf var/tmp/hal-app
BEAR.Sunday application performance results by environment :
Environment | Time [※] |
---|---|
Default Docker | 1.10 sec |
Docker + docker-sync | 117 ms |
Docker + Mutagen | 162 ms |
[※] Mesured by Chrome DevTools [Network] tab
These codes are licensed under CC0.