Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasonmag/rails7-docker-install
Create new Rails 7 project with Docker setup
https://github.com/jasonmag/rails7-docker-install
docker dockerfile hacktoberfest rails7
Last synced: about 2 months ago
JSON representation
Create new Rails 7 project with Docker setup
- Host: GitHub
- URL: https://github.com/jasonmag/rails7-docker-install
- Owner: jasonmag
- License: mit
- Created: 2022-06-21T16:51:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-23T12:27:20.000Z (over 2 years ago)
- Last Synced: 2024-10-23T04:33:36.960Z (2 months ago)
- Topics: docker, dockerfile, hacktoberfest, rails7
- Language: Dockerfile
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ruby on Rails 7 with Docker setup
Create new Rails 7 project with Docker setupTo create new Ruby on Rails project with Docker setup.
Instructions:
1. Insert files to the new Rails project
- Dockerfile
- docker-compose.yml
- entrypoint.sh
- .dockerignore
- .env.example
- config/database.yml2. database.yml is using DATABASE_URL variable for 1 line database connection. Don't copy the files if you don't prefer the said setup.
3. Update docker-compose.yml variable db > environment, if values does not met your needs.
4. Update Rails project .env with .env.example values
- command: cp .env.example .env
- update environment (.env) values based on your preferred setup, in this case DATABSE_URL5. Run docker
- command: docker compose up-----
This Rails 7 with Docker project is created to prevent version incompatibility with other server setup.-- jasonmag