Run and manage a complete local instance of Example.
- Have all projects cloned as sibling directories:
~/code/example/
api/
app/
service1/
service2/
service3/
- Run
bin/setup
docker-compose up -d
docker-compose ps
docker-compose logs -f
$BROWSER http://localhost:3000
Docker for Mac suffers from very poor performance with mounted OS X
filesystems, so we provide a configuration for docker-sync
we
suggest using.
To install dependencies:
gem install docker-sync
brew install fswatch
To run:
- Run
docker-sync start
to start sync volume. - Use
docker-compose --file docker-compose.yml --file docker-compose.docker-sync.yml up -d
when bringing up services. (You may want to create a local alias fordocker-compose --file docker-compose.yml --file docker-compose.docker-sync.yml
to simplify frequent commands.)