File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
- # Releases
1
+ ## Releases
2
2
3
- ## 1.0 Docker to Rails using rbenv
3
+ ### 1.0 Docker to Rails using rbenv
4
4
5
5
Build several containers to run Rails Application, the main features are:
6
6
@@ -9,9 +9,9 @@ Build several containers to run Rails Application, the main features are:
9
9
- Using links and environment's variables in docker-compose.
10
10
- Persist MySQL data in volumes.
11
11
12
- ### Build the project
12
+ #### Build the project
13
13
14
- Create container only data
14
+ ##### Create container only data
15
15
16
16
```
17
17
docker run -v /var/lib/mysql --name mysql_data busybox true
@@ -21,17 +21,15 @@ Start containers with docker-composer
21
21
docker-compose up
22
22
```
23
23
24
- ### Database config
25
-
26
- #### Create database
24
+ ##### Create database
27
25
```
28
26
docker-compose run web bundle exec rake db:create
29
27
```
30
- #### Create tables
28
+ ##### Create tables
31
29
```
32
30
docker-compose run web bundle exec rake db:migrate
33
31
```
34
- #### Import data test
32
+ ##### Import data test
35
33
```
36
34
docker-compose run web bundle exec rake db:seed
37
35
```
You can’t perform that action at this time.
0 commit comments