Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryosk7/rails_on_docker_seed
Docker上でRailsを動かす為の最小限のリポジトリ。
https://github.com/ryosk7/rails_on_docker_seed
Last synced: 5 days ago
JSON representation
Docker上でRailsを動かす為の最小限のリポジトリ。
- Host: GitHub
- URL: https://github.com/ryosk7/rails_on_docker_seed
- Owner: ryosk7
- Created: 2019-11-18T17:51:18.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-18T05:36:58.000Z (almost 5 years ago)
- Last Synced: 2024-10-18T19:51:56.341Z (3 months ago)
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setup
## first setup
### git clone & move files
```
$ git clone [email protected]:ryosk7/rails_on_docker_seed.git
$ mv ./rails_on_docker_seed/* ./
$ mv ./rails_on_docker_seed/.* ./
$ rm -rf rails_on_docker_seed
$ rm -rf .git
$ git init
# If you want to use commit template, you can use this. (This commit template is written in Japanese.)
$ git config --local commit.template ./.commit_template
$ docker-compose build
$ docker-compose run back rails new . -d mysql -T
```
### You should edit database.yml
Like this!
```
- username: root
- password:
- host: localhost
+ username: root
+ password: root
+ host: db
```
### Run Rails server
```
$ docker-compose build
$ docker-compose run back rails db:create
$ docker-compose down
$ docker-compose up -d
$ docker attach rails_server
```