質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -99,3 +99,97 @@
|
|
99
99
|
|
100
100
|
|
101
101
|
```
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
追記
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
docker-compose.yamlファイルは以下のようになっています。
|
110
|
+
|
111
|
+
ホスト側のOSは、macでdocker側のOSは、ubuntuになります。
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
```
|
116
|
+
|
117
|
+
version: "3"
|
118
|
+
|
119
|
+
services:
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
uwsgi:
|
124
|
+
|
125
|
+
build: ./
|
126
|
+
|
127
|
+
volumes:
|
128
|
+
|
129
|
+
- ~/local/xxx/work:/code/log/
|
130
|
+
|
131
|
+
ports:
|
132
|
+
|
133
|
+
- "3031:3031"
|
134
|
+
|
135
|
+
links:
|
136
|
+
|
137
|
+
- mysql:mysql
|
138
|
+
|
139
|
+
environment:
|
140
|
+
|
141
|
+
TZ: "Asia/Tokyo"
|
142
|
+
|
143
|
+
DATABASE_URL: "mysql+mysqldb://root:password@mysql/test_db?charset=utf8"
|
144
|
+
|
145
|
+
DEBUG: 1
|
146
|
+
|
147
|
+
CONFIG: local
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
nginx:
|
152
|
+
|
153
|
+
build: ./nginx/local/
|
154
|
+
|
155
|
+
volumes:
|
156
|
+
|
157
|
+
- ./nginx/local/nginx.conf:/etc/nginx/nginx.conf
|
158
|
+
|
159
|
+
links:
|
160
|
+
|
161
|
+
- uwsgi
|
162
|
+
|
163
|
+
ports:
|
164
|
+
|
165
|
+
- "9080:80"
|
166
|
+
|
167
|
+
environment:
|
168
|
+
|
169
|
+
TZ: "Asia/Tokyo"
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
mysql:
|
174
|
+
|
175
|
+
image: mysql
|
176
|
+
|
177
|
+
volumes:
|
178
|
+
|
179
|
+
- ~/local/xxx/work:/code/log/
|
180
|
+
|
181
|
+
ports:
|
182
|
+
|
183
|
+
- "13306:3306"
|
184
|
+
|
185
|
+
environment:
|
186
|
+
|
187
|
+
MYSQL_ROOT_PASSWORD: password
|
188
|
+
|
189
|
+
MYSQL_USER: test
|
190
|
+
|
191
|
+
MYSQL_PASSWORD: test
|
192
|
+
|
193
|
+
MYSQL_DATABASE: test_db
|
194
|
+
|
195
|
+
```
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
http://127.0.0.1:9080/
|
18
18
|
|
19
|
-
→ Internal Server Error
|
19
|
+
→ Internal Server Error
|
20
20
|
|
21
21
|
|
22
22
|
|