Simple Ruby on Rails 6 development environment with docker
303
Step 1: create a docker-compose.yml in any directory you want.
Step 2: copy the following content and paste into docker-compose.yml
version: '3.8'
services:
app:
image: 5xcampus/ruby:rails6-dev
container_name: rails6-dev
stdin_open: true
tty: true
volumes:
- .:/usr/src/app
- ~/.ssh:/root/.ssh:ro
ports:
- 3000:3000
networks:
- happy_hacking
command: /bin/zsh
networks:
happy_hacking:
Step 3: run docker-compose run app command, and DONE!
Now you should have a Ruby on Rails (version 6.1.1) development environment.
Content type
Image
Digest
Size
265.7 MB
Last updated
over 5 years ago
docker pull 5xcampus/ruby:rails6-dev