質問編集履歴
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
docker-compose upを実行し、docker-compose run web rails db:createを実行するとエラーになってしまいます。
|
6
6
|
|
7
|
-
改善方法がわからないため、ご教授
|
7
|
+
改善方法がわからないため、ご教授頂けますと幸いです。
|
8
8
|
|
9
9
|
|
10
10
|
|
@@ -30,52 +30,42 @@
|
|
30
30
|
|
31
31
|
```
|
32
32
|
|
33
|
+
default: &default
|
34
|
+
|
35
|
+
adapter: mysql2
|
36
|
+
|
37
|
+
encoding: utf8
|
38
|
+
|
39
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
40
|
+
|
41
|
+
username: root
|
42
|
+
|
43
|
+
password: password # docker-compose.ymlのMYSQL_ROOT_PASSWORD
|
44
|
+
|
33
|
-
|
45
|
+
host: db
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
development:
|
34
50
|
|
35
51
|
<<: *default
|
36
52
|
|
53
|
+
username: root
|
54
|
+
|
55
|
+
password: password
|
56
|
+
|
37
|
-
database: d
|
57
|
+
database: docker_development
|
38
58
|
|
39
59
|
|
40
60
|
|
41
61
|
production:
|
42
62
|
|
43
|
-
|
63
|
+
<<: *default
|
64
|
+
|
65
|
+
database: <%= ENV['DB_DATABASE'] %>
|
44
66
|
|
45
67
|
adapter: mysql2
|
46
68
|
|
47
|
-
encoding: utf8
|
48
|
-
|
49
|
-
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
50
|
-
|
51
|
-
username: root
|
52
|
-
|
53
|
-
password: password # docker-compose.ymlのMYSQL_ROOT_PASSWORD
|
54
|
-
|
55
|
-
host: db
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
development:
|
60
|
-
|
61
|
-
<<: *default
|
62
|
-
|
63
|
-
username: root
|
64
|
-
|
65
|
-
password: password
|
66
|
-
|
67
|
-
database: docker_development
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
production:
|
72
|
-
|
73
|
-
<<: *default
|
74
|
-
|
75
|
-
database: <%= ENV['DB_DATABASE'] %>
|
76
|
-
|
77
|
-
adapter: mysql2
|
78
|
-
|
79
69
|
encoding: utf8mb4
|
80
70
|
|
81
71
|
charset: utf8mb4
|
@@ -88,8 +78,6 @@
|
|
88
78
|
|
89
79
|
password: <%= ENV['DB_PASSWORD'] %>
|
90
80
|
|
91
|
-
|
92
|
-
|
93
81
|
```
|
94
82
|
|
95
83
|
docker-compose.yml
|