Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kalelc authored May 2, 2018
1 parent 00dba4a commit edaa589
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Releases
## Releases

## 1.0 Docker to Rails using rbenv
### 1.0 Docker to Rails using rbenv

Build several containers to run Rails Application, the main features are:

Expand All @@ -9,9 +9,9 @@ Build several containers to run Rails Application, the main features are:
- Using links and environment's variables in docker-compose.
- Persist MySQL data in volumes.

### Build the project
#### Build the project

Create container only data
##### Create container only data

```
docker run -v /var/lib/mysql --name mysql_data busybox true
Expand All @@ -21,17 +21,15 @@ Start containers with docker-composer
docker-compose up
```

### Database config

#### Create database
##### Create database
```
docker-compose run web bundle exec rake db:create
```
#### Create tables
##### Create tables
```
docker-compose run web bundle exec rake db:migrate
```
#### Import data test
##### Import data test
```
docker-compose run web bundle exec rake db:seed
```

0 comments on commit edaa589

Please sign in to comment.