質問編集履歴

4

編集

2020/05/04 07:45

投稿

dxo
dxo

スコア16

test CHANGED
File without changes
test CHANGED
@@ -98,7 +98,7 @@
98
98
 
99
99
  <<: *default
100
100
 
101
- database: forple_development
101
+ database: hoge_development
102
102
 
103
103
 
104
104
 
@@ -106,7 +106,7 @@
106
106
 
107
107
  <<: *default
108
108
 
109
- database: forple_test
109
+ database: hoge_test
110
110
 
111
111
 
112
112
 

3

編集

2020/05/04 07:45

投稿

dxo
dxo

スコア16

test CHANGED
File without changes
test CHANGED
@@ -176,7 +176,7 @@
176
176
 
177
177
  volumes:
178
178
 
179
- - .:/forple-pf
179
+ - .:/hoge
180
180
 
181
181
  - ./.docker/rails/volumes:/usr/local/bundle
182
182
 
@@ -186,7 +186,7 @@
186
186
 
187
187
  - DATABASE_PASSWORD=password
188
188
 
189
- - BUNDLE_APP_CONFIG="/forple-pf/.bundle"
189
+ - BUNDLE_APP_CONFIG="/hoge/.bundle"
190
190
 
191
191
  depends_on:
192
192
 

2

修正

2020/05/04 07:44

投稿

dxo
dxo

スコア16

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  could not translate host name "db" to address: Name or service not known
14
14
 
15
- Couldn't create 'forple_development' database. Please check your configuration.
15
+ Couldn't create 'hoge_development' database. Please check your configuration.
16
16
 
17
17
  rake aborted!
18
18
 

1

docker-compose.yml の追加

2020/05/04 07:41

投稿

dxo
dxo

スコア16

test CHANGED
File without changes
test CHANGED
@@ -124,6 +124,78 @@
124
124
 
125
125
 
126
126
 
127
+
128
+
129
+ 【補足情報】
130
+
131
+ docker-compose.yml
132
+
133
+ ```
134
+
135
+ version: '3'
136
+
137
+ services:
138
+
139
+ db:
140
+
141
+ build:
142
+
143
+ context: .
144
+
145
+ dockerfile: ./.docker/postgresql/Dockerfile
146
+
147
+ volumes:
148
+
149
+ - ./.docker/postgresql/volumes:/var/lib/postgresql/data
150
+
151
+ environment:
152
+
153
+ - DATABASE_USER=postgres
154
+
155
+ - DATABASE_PASSWORD=password
156
+
157
+ web:
158
+
159
+ tty: true
160
+
161
+ stdin_open: true
162
+
163
+ build:
164
+
165
+ context: .
166
+
167
+ dockerfile: ./.docker/rails/Dockerfile
168
+
169
+ command: bundle exec foreman start -f Procfile.dev
170
+
171
+ ports:
172
+
173
+ - "3000:3000"
174
+
175
+ - "8000:8000"
176
+
177
+ volumes:
178
+
179
+ - .:/forple-pf
180
+
181
+ - ./.docker/rails/volumes:/usr/local/bundle
182
+
183
+ environment:
184
+
185
+ - DATABASE_USER=postgres
186
+
187
+ - DATABASE_PASSWORD=password
188
+
189
+ - BUNDLE_APP_CONFIG="/forple-pf/.bundle"
190
+
191
+ depends_on:
192
+
193
+ - db
194
+
195
+ ```
196
+
197
+
198
+
127
199
  解決方法をご教授ください。
128
200
 
129
201
  よろしくお願い致します。