https://github.com/ryosukecla/railsdock
https://github.com/ryosukecla/railsdock
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryosukecla/railsdock
- Owner: RyosukeCla
- Created: 2016-12-18T09:10:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-18T09:25:58.000Z (about 9 years ago)
- Last Synced: 2025-05-26T04:10:53.807Z (8 months ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby on rails with docker-compose
## get started
```
$ sh build-docker.sh
$ sh run-docker.sh
$ docker-compose up
$ docker-compose exec rails bash
root:/app# rails db:create
```
go to [localhost](http://localhost:3000/)
## how to
### build docker images
```
$ sh build-docker.sh
```
### run dorcker container
```
$ sh run-docker.sh
```
### start rails
```
$ docker-compose up
```
#### requirements
```
$ docker-compose exec rails bash
root:/app# rails db:create
```
### stop rails
```
$ docker-compose stop
```
### rm docker container
```
$ docker-compose rm
```
special thanks kawasin