質問編集履歴
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -48,4 +48,51 @@
|
|
48
48
|
::1 localhost
|
49
49
|
#127.0.0.1 setting.hoge.xxx.jp
|
50
50
|
|
51
|
+
```
|
52
|
+
|
53
|
+
追記
|
54
|
+
|
55
|
+
docker-compose.yamlファイルは以下のようになっています。
|
56
|
+
ホスト側のOSは、macでdocker側のOSは、ubuntuになります。
|
57
|
+
|
58
|
+
```
|
59
|
+
version: "3"
|
60
|
+
services:
|
61
|
+
|
62
|
+
uwsgi:
|
63
|
+
build: ./
|
64
|
+
volumes:
|
65
|
+
- ~/local/xxx/work:/code/log/
|
66
|
+
ports:
|
67
|
+
- "3031:3031"
|
68
|
+
links:
|
69
|
+
- mysql:mysql
|
70
|
+
environment:
|
71
|
+
TZ: "Asia/Tokyo"
|
72
|
+
DATABASE_URL: "mysql+mysqldb://root:password@mysql/test_db?charset=utf8"
|
73
|
+
DEBUG: 1
|
74
|
+
CONFIG: local
|
75
|
+
|
76
|
+
nginx:
|
77
|
+
build: ./nginx/local/
|
78
|
+
volumes:
|
79
|
+
- ./nginx/local/nginx.conf:/etc/nginx/nginx.conf
|
80
|
+
links:
|
81
|
+
- uwsgi
|
82
|
+
ports:
|
83
|
+
- "9080:80"
|
84
|
+
environment:
|
85
|
+
TZ: "Asia/Tokyo"
|
86
|
+
|
87
|
+
mysql:
|
88
|
+
image: mysql
|
89
|
+
volumes:
|
90
|
+
- ~/local/xxx/work:/code/log/
|
91
|
+
ports:
|
92
|
+
- "13306:3306"
|
93
|
+
environment:
|
94
|
+
MYSQL_ROOT_PASSWORD: password
|
95
|
+
MYSQL_USER: test
|
96
|
+
MYSQL_PASSWORD: test
|
97
|
+
MYSQL_DATABASE: test_db
|
51
98
|
```
|
1
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
→ curl: (7) Failed to connect to 127.0.0.1 port 80: Connection refused
|
8
8
|
|
9
9
|
http://127.0.0.1:9080/
|
10
|
-
→ Internal Server
|
10
|
+
→ Internal Server Error
|
11
11
|
|
12
12
|
http://127.0.0.1:9080/healthcheck
|
13
13
|
→ 成功
|