/docker-rails

Primary LanguageDockerfile

README

For React template and PostgreSQL

docker-compose run --no-deps NAME-PROJECT rails new . --force --webpack=react --database=postgresql

Api example

docker-compose run --no-deps NAME-PROJECT rails new . --force --api

After install (repack all files to docker)

docker-compose build

(Ubuntu) After install, you need to run this cmd to edit files

sudo chown -R $USER:$USER .

Use and code

docker-compose up
docker exec -it NAME_CONTAINER bash