質問編集履歴
4
ソースコードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -300,7 +300,33 @@
|
|
300
300
|
|
301
301
|
```
|
302
302
|
|
303
|
-
|
303
|
+
**puma.rb**
|
304
|
+
|
305
|
+
```ここに言語を入力
|
306
|
+
|
307
|
+
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
|
308
|
+
|
309
|
+
threads threads_count, threads_count
|
310
|
+
|
311
|
+
port ENV.fetch("PORT") { 3000 }
|
312
|
+
|
313
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
314
|
+
|
315
|
+
plugin :tmp_restart
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
app_root = File.expand_path("../..", __FILE__)
|
320
|
+
|
321
|
+
bind "unix://#{app_root}/tmp/sockets/puma.sock"
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
stdout_redirect "#{app_root}/log/puma.stdout.log", "#{app_root}/log/puma.stderr.log", true
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
```
|
304
330
|
|
305
331
|
**$ docker volume inspect webapp_tmp-dataの出力**
|
306
332
|
|
3
結果の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -299,3 +299,41 @@
|
|
299
299
|
|
300
300
|
|
301
301
|
```
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
**$ docker volume inspect webapp_tmp-dataの出力**
|
306
|
+
|
307
|
+
```ここに言語を入力
|
308
|
+
|
309
|
+
[
|
310
|
+
|
311
|
+
{
|
312
|
+
|
313
|
+
"CreatedAt": "2020-09-05T10:12:43Z",
|
314
|
+
|
315
|
+
"Driver": "local",
|
316
|
+
|
317
|
+
"Labels": {
|
318
|
+
|
319
|
+
"com.docker.compose.project": "webapp",
|
320
|
+
|
321
|
+
"com.docker.compose.version": "1.25.5",
|
322
|
+
|
323
|
+
"com.docker.compose.volume": "tmp-data"
|
324
|
+
|
325
|
+
},
|
326
|
+
|
327
|
+
"Mountpoint": "/var/lib/docker/volumes/webapp_tmp-data/_data",
|
328
|
+
|
329
|
+
"Name": "webapp_tmp-data",
|
330
|
+
|
331
|
+
"Options": null,
|
332
|
+
|
333
|
+
"Scope": "local"
|
334
|
+
|
335
|
+
}
|
336
|
+
|
337
|
+
]
|
338
|
+
|
339
|
+
```
|
2
プライベートな情報を変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,7 +54,7 @@
|
|
54
54
|
|
55
55
|
# ドメインもしくはIPを指定
|
56
56
|
|
57
|
-
server_name 192.168.
|
57
|
+
server_name 192.168.hoge.hoge (念のため伏せています);
|
58
58
|
|
59
59
|
|
60
60
|
|
1
文章を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
+
何卒宜しくお願い致します。
|
10
|
+
|
9
11
|
**containar/Dockerfile(Nginx用**)
|
10
12
|
|
11
13
|
```ここに言語を入力
|