I want to create an application with Ember for frontend and Rails for backend. I created two images and I use this docker-compose file :
api: image: social-learning ports: - "3000:3000" command: bundle exec rails s -p 3000 -b '0.0.0.0' volumes: - ../api:/app expose: - "3000" web: image: social-learning-frontend ports: - "4200:4200" - "9000:9000" command: ember serve -p 4200 volumes: - .:/app links: - api
It works but I find docker painful. For example, when I want to restart an app, I have to do
docker ps, copy the id with the mouse, docker
docker stop .... and
docker-compose up web. Without docker, it’s easier because I have just to do a CTRL-C. This a simple example but I find docker quit hard to use in comparison of simply install all on my local machine.
I like the fact than the virtual machine is isolated from my local machine but I can do it with Vagrant too.
I understand why docker is useful to deploy in production but I’m not sure it’s a best practice to use in development. What is your opinion ?