Here’s what my docker-compose.yml file looks like: I start all the containers in the docker-compose.yml file and then run bash inside theĪpp’s container to do development. I have a single docker-compose.yml file that runs services like Postgres, but also runs a custom-built image forĭeveloping my Rails app. This creates a bit of a problem for webpack-dev-server, but this, too, can be fixed. I recently discovered that, by using NFS, file system access is wayįaster. Running bin/rails server on a fresh RailsĪpp can take almost a minute to come up. The problem is that Docker on Mac has very slow file system access. Only run services like Postgres and Redis, but also as a virtual machine in which to run all my dev commands. For the past several months on several projects, I’ve been using Docker (and docker-compose) to not I am somewhat obsessed with clean, repeatable, maintainable dev environments and Docker has all the pieces toĬreate one.
Docker on Mac for Development with Fast Disk Access and Webpack Dev Server