Comments (5)
Setting up Rails for the first time with all the dependencies necessary can be daunting for beginners.
The README outlines that docked
is intended for beginners and as such I think it should stick to default options and dependencies that you get when running rails new
.
Providing a dockerised Rails development environment that covers most cases and fits everyone's needs is nearly impossible without sacrificing this simplicity.
from docked.
I believe you have to use docker-compose for that necessity. This is an example:
version: '3.4'
services:
web:
image: "ghcr.io/rails/cli:latest"
command: /bin/bash -c "rm -f /tmp/server.pid && bundle exec rails server -b 0.0.0.0 -P /tmp/server.pid"
env_file: .env
ports:
- 3000:3000
depends_on:
- db
- redis
volumes:
- .:/rails
- ruby-bundle-cache:/bundle
tty: true
stdin_open: true
redis:
image: "redis:7-alpine"
ports:
- 6379
volumes:
- ./tmp/redis_data:/var/lib/redis/data
db:
image: postgres
restart: always
ports:
- 5432:5432
volumes:
- ./tmp/postgres_data:/var/lib/postgresql/data
volumes:
ruby-bundle-cache:
external: true
This is a post with the entire explanation.
from docked.
It would be nice to add some instructions to the readme.
from docked.
Hi, @yorsant if you have any additional questions let me know. Regarding the instructions, if you are at the root of your rails project you have to create a file called docker-compose.yml
with the information above. After that, you have to execute the following command to start rails: docker-compose up
. Don't forget to add a .env
file with the Redis and Postgres credentials.
from docked.
What @durierem said.
from docked.
Related Issues (18)
- Starting Place (for esbuild environments) HOT 1
- Shrink image using alpine or slim base HOT 2
- Bad yarn recommendation in readme HOT 1
- Readme on windows - fail on switching to projects directory HOT 1
- Bug: cannot run multiple consoles via docked rails c HOT 5
- Ruby 3.2.0 HOT 2
- Usage of docked in developement env with new setup of rails main branch HOT 1
- No write access after creating new app HOT 4
- Include MySQL and PostgreSQL development libraries? HOT 2
- Problem with PG gem HOT 3
- Ruby versions HOT 4
- Unable to find PostgreSQL client library when creating new rails project HOT 1
- Use package manager to install Node HOT 1
- What is this?
- Setup build process for creating a single multi-platform image HOT 2
- Incompatibility with Podman (Error: statfs no such file or directory) HOT 3
- Error when running rails new HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docked.