Developing in Docker

Episode #414 by Teacher's Avatar David Kimura

Summary

I use Docker every day and it has make my development workflow much simpler. I don't have to deal with conflicts or issues with macOS since everything is containerized. Before, I would fight my host operating system with mismatched dependencies and configuration problems, but using Docker during my development workflow has simplified things. In this episode, we'll run through how I use Docker on Rails applications and some of the tricks I use to solve the nuances of this approach.
rails development docker 34:28

Chapters

  • Introduction (0:00)
  • Creating the Docker files (2:53)
  • .dockerignore (3:20)
  • Dockerfile.dev (3:55)
  • docker-compose.yml (8:30)
  • Changing DB to PostgreSQL (12:52)
  • The bin/dev command (14:08)
  • docker-compose.yml cont. (14:57)
  • Docker CLI commands (18:39)
  • Adding a gem (21:53)
  • Command aliases (27:19)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams