Skip to content

Latest commit

 

History

History
74 lines (49 loc) · 1.68 KB

README.md

File metadata and controls

74 lines (49 loc) · 1.68 KB

Cantainer.Sunday (Dec. 2020 version)

  • 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で動かしたときの計測用リポジトリ

Usage

  1. Default Docker
$ docker-compose build
$ docker-compose up

http://localhost:1758/

$ docker-compose down
$ rm -rf var/tmp/hal-app
  1. Docker + docker-sync
$ docker-sync start
$ docker-compose -f docker-compose.docker_sync.yml up -d

http://localhost:1758/

$ docker-compose down
$ docker-sync stop
$ rm -rf var/tmp/hal-app
  1. Docker + Mutagen
$ mutagen compose -f docker-compose.mutagen.yml up -d

http://localhost:1758/

$ mutagen compose -f docker-compose.mutagen.yml down
$ rm -rf var/tmp/hal-app

Performance records

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

Links

License

These codes are licensed under CC0.

CC0