質問編集履歴
4
MD
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,267 +1,249 @@
|
|
1
|
+
## 前提・実現したいこと
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
Docker for Mac 内での UNIX ソケット パーミッションエラーを無くしたい。
|
6
|
+
|
7
|
+
ブラウザでは、502 Bad Gateway
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
ここに質問の内容を詳しく書いてください。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
以下の設定でパーミッションエラーになります。
|
16
|
+
|
17
|
+
3 日程はまってますが、原因特定出来ず。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
宜しくお願い致します。
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## 発生している問題・エラーメッセージ
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
[crit] 6#6: *9 connect() to unix:/run/go.sock failed (13: Permission denied) while connecting to upstream,
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
## 該当のソースコード
|
34
|
+
|
35
|
+
|
36
|
+
|
1
37
|
```ここに言語を入力
|
2
38
|
|
3
|
-
コード
|
4
|
-
|
5
|
-
|
39
|
+
( nginx.conf )
|
40
|
+
|
41
|
+
|
42
|
+
|
6
|
-
|
43
|
+
events {
|
44
|
+
|
7
|
-
|
45
|
+
worker_connections 1024;
|
46
|
+
|
8
|
-
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
http {
|
52
|
+
|
53
|
+
upstream nginx-internal-sock {
|
54
|
+
|
9
|
-
|
55
|
+
server unix:/run/go.sock;
|
56
|
+
|
10
|
-
|
57
|
+
}
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
server {
|
62
|
+
|
11
|
-
|
63
|
+
listen 80;
|
64
|
+
|
12
|
-
|
65
|
+
server_name api.local;
|
66
|
+
|
67
|
+
|
68
|
+
|
13
|
-
|
69
|
+
real_ip_header X-Forwarded-For;
|
14
|
-
|
70
|
+
|
71
|
+
|
72
|
+
|
15
|
-
|
73
|
+
location / {
|
16
|
-
|
17
|
-
|
18
|
-
|
74
|
+
|
19
|
-
|
75
|
+
proxy_http_version 1.1;
|
76
|
+
|
20
|
-
|
77
|
+
proxy_set_header Upgrade $http_upgrade;
|
78
|
+
|
79
|
+
proxy_set_header Connection "upgrade";
|
80
|
+
|
21
|
-
|
81
|
+
proxy_set_header Host $host;
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
82
|
+
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
83
|
+
proxy_set_header X-Real-IP $remote_addr;
|
84
|
+
|
30
|
-
|
85
|
+
proxy_set_header Accept-Encoding "";
|
31
|
-
|
32
|
-
|
86
|
+
|
87
|
+
|
88
|
+
|
33
|
-
|
89
|
+
proxy_pass http://nginx-internal-sock/;
|
90
|
+
|
34
|
-
|
91
|
+
}
|
92
|
+
|
35
|
-
|
93
|
+
}
|
94
|
+
|
36
|
-
|
95
|
+
}
|
96
|
+
|
37
|
-
|
97
|
+
```
|
38
98
|
|
39
99
|
|
40
100
|
|
41
101
|
```ここに言語を入力
|
42
102
|
|
43
|
-
(
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
u
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
103
|
+
( docker-compose.yml )
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
version: "3.5"
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
services:
|
112
|
+
|
113
|
+
golang:
|
114
|
+
|
115
|
+
env_file: .env
|
116
|
+
|
117
|
+
build: ./app
|
118
|
+
|
119
|
+
tty: true
|
120
|
+
|
121
|
+
restart: always
|
122
|
+
|
123
|
+
container_name: golang
|
124
|
+
|
125
|
+
volumes:
|
126
|
+
|
127
|
+
- sample_api_socket:/run:z
|
128
|
+
|
129
|
+
- ./app:/go/src/github.com/test-api/app
|
130
|
+
|
131
|
+
- ./log:/var/log/test-api
|
132
|
+
|
133
|
+
networks:
|
134
|
+
|
135
|
+
- sample_api_network
|
136
|
+
|
137
|
+
nginx:
|
138
|
+
|
139
|
+
env_file: .env
|
140
|
+
|
141
|
+
build: ./nginx
|
142
|
+
|
143
|
+
container_name: nginx
|
144
|
+
|
145
|
+
restart: always
|
146
|
+
|
147
|
+
environment:
|
148
|
+
|
149
|
+
VIRTUAL_HOST: test-api.local
|
150
|
+
|
151
|
+
VIRTUAL_PORT: 80
|
152
|
+
|
153
|
+
volumes:
|
154
|
+
|
155
|
+
- sample_api_socket:/run:z
|
156
|
+
|
157
|
+
ports:
|
158
|
+
|
159
|
+
- "80"
|
160
|
+
|
161
|
+
networks:
|
162
|
+
|
163
|
+
- sample_api_network
|
164
|
+
|
165
|
+
- sample_shop_network
|
166
|
+
|
167
|
+
- services_network
|
168
|
+
|
169
|
+
depends_on:
|
170
|
+
|
171
|
+
- "golang"
|
172
|
+
|
173
|
+
minio:
|
174
|
+
|
175
|
+
env_file: .env
|
176
|
+
|
177
|
+
image: minio/minio:RELEASE.2019-07-05T21-20-21Z
|
178
|
+
|
179
|
+
container_name: minio
|
180
|
+
|
181
|
+
restart: always
|
182
|
+
|
183
|
+
environment:
|
184
|
+
|
185
|
+
VIRTUAL_HOST: test-minio.local
|
186
|
+
|
187
|
+
VIRTUAL_PORT: ${MINIO_PORT}
|
188
|
+
|
189
|
+
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
190
|
+
|
191
|
+
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
192
|
+
|
193
|
+
volumes:
|
194
|
+
|
195
|
+
- ./minio/export:/export
|
196
|
+
|
197
|
+
- ./minio/data:/data/minio
|
198
|
+
|
199
|
+
ports:
|
200
|
+
|
201
|
+
- "${MINIO_PORT}"
|
202
|
+
|
203
|
+
networks:
|
204
|
+
|
205
|
+
- sample_api_network
|
206
|
+
|
207
|
+
- services_network
|
208
|
+
|
209
|
+
command: server /data/minio
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
volumes:
|
214
|
+
|
215
|
+
sample_api_socket:
|
216
|
+
|
217
|
+
external: true
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
networks:
|
222
|
+
|
223
|
+
sample_api_network:
|
224
|
+
|
225
|
+
name: sample_api
|
226
|
+
|
227
|
+
driver: bridge
|
228
|
+
|
229
|
+
sample_shop_network:
|
230
|
+
|
231
|
+
name: sample_shop
|
232
|
+
|
233
|
+
driver: bridge
|
234
|
+
|
235
|
+
services_network:
|
236
|
+
|
237
|
+
name: services
|
238
|
+
|
239
|
+
driver: bridge
|
240
|
+
|
241
|
+
|
108
242
|
|
109
243
|
```
|
110
244
|
|
111
245
|
|
112
246
|
|
113
|
-
( docker-compose.yml )
|
114
|
-
|
115
|
-
```ここに言語を入力
|
116
|
-
|
117
|
-
version: "3.5"
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
services:
|
122
|
-
|
123
|
-
golang:
|
124
|
-
|
125
|
-
env_file: .env
|
126
|
-
|
127
|
-
build: ./app
|
128
|
-
|
129
|
-
tty: true
|
130
|
-
|
131
|
-
restart: always
|
132
|
-
|
133
|
-
container_name: golang
|
134
|
-
|
135
|
-
volumes:
|
136
|
-
|
137
|
-
- sample_api_socket:/run:z
|
138
|
-
|
139
|
-
- ./app:/go/src/github.com/test-api/app
|
140
|
-
|
141
|
-
- ./log:/var/log/test-api
|
142
|
-
|
143
|
-
networks:
|
144
|
-
|
145
|
-
- sample_api_network
|
146
|
-
|
147
|
-
nginx:
|
148
|
-
|
149
|
-
env_file: .env
|
150
|
-
|
151
|
-
build: ./nginx
|
152
|
-
|
153
|
-
container_name: nginx
|
154
|
-
|
155
|
-
restart: always
|
156
|
-
|
157
|
-
environment:
|
158
|
-
|
159
|
-
VIRTUAL_HOST: test-api.local
|
160
|
-
|
161
|
-
VIRTUAL_PORT: 80
|
162
|
-
|
163
|
-
# LETSENCRYPT_HOST: test-api.local
|
164
|
-
|
165
|
-
# LETSENCRYPT_EMAIL: admin@docker.local
|
166
|
-
|
167
|
-
volumes:
|
168
|
-
|
169
|
-
- sample_api_socket:/run:z
|
170
|
-
|
171
|
-
ports:
|
172
|
-
|
173
|
-
- "80"
|
174
|
-
|
175
|
-
networks:
|
176
|
-
|
177
|
-
- sample_api_network
|
178
|
-
|
179
|
-
- sample_shop_network
|
180
|
-
|
181
|
-
- services_network
|
182
|
-
|
183
|
-
depends_on:
|
184
|
-
|
185
|
-
- "golang"
|
186
|
-
|
187
|
-
minio:
|
188
|
-
|
189
|
-
env_file: .env
|
190
|
-
|
191
|
-
image: minio/minio:RELEASE.2019-07-05T21-20-21Z
|
192
|
-
|
193
|
-
container_name: minio
|
194
|
-
|
195
|
-
restart: always
|
196
|
-
|
197
|
-
environment:
|
198
|
-
|
199
|
-
VIRTUAL_HOST: test-minio.local
|
200
|
-
|
201
|
-
VIRTUAL_PORT: ${MINIO_PORT}
|
202
|
-
|
203
|
-
# LETSENCRYPT_HOST: test-minio.local
|
204
|
-
|
205
|
-
# LETSENCRYPT_EMAIL: admin@docker.local
|
206
|
-
|
207
|
-
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
208
|
-
|
209
|
-
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
210
|
-
|
211
|
-
volumes:
|
212
|
-
|
213
|
-
- ./minio/export:/export
|
214
|
-
|
215
|
-
- ./minio/data:/data/minio
|
216
|
-
|
217
|
-
ports:
|
218
|
-
|
219
|
-
- "${MINIO_PORT}"
|
220
|
-
|
221
|
-
networks:
|
222
|
-
|
223
|
-
- sample_api_network
|
224
|
-
|
225
|
-
- services_network
|
226
|
-
|
227
|
-
command: server /data/minio
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
volumes:
|
232
|
-
|
233
|
-
sample_api_socket:
|
234
|
-
|
235
|
-
external: true
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
networks:
|
240
|
-
|
241
|
-
sample_api_network:
|
242
|
-
|
243
|
-
name: sample_api
|
244
|
-
|
245
|
-
driver: bridge
|
246
|
-
|
247
|
-
sample_shop_network:
|
248
|
-
|
249
|
-
name: sample_shop
|
250
|
-
|
251
|
-
driver: bridge
|
252
|
-
|
253
|
-
services_network:
|
254
|
-
|
255
|
-
name: services
|
256
|
-
|
257
|
-
driver: bridge
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
```
|
262
|
-
|
263
|
-
|
264
|
-
|
265
247
|
|
266
248
|
|
267
249
|
## 試したこと
|
3
add MD..
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
+
```ここに言語を入力
|
2
|
+
|
3
|
+
コード
|
4
|
+
|
1
|
-
## 前提・実現したいこと
|
5
|
+
```## 前提・実現したいこと
|
2
6
|
|
3
7
|
|
4
8
|
|
@@ -34,13 +38,15 @@
|
|
34
38
|
|
35
39
|
|
36
40
|
|
41
|
+
```ここに言語を入力
|
42
|
+
|
37
|
-
|
43
|
+
( nginx.conf )
|
38
44
|
|
39
45
|
|
40
46
|
|
41
47
|
events {
|
42
48
|
|
43
|
-
worker_connections 1024;
|
49
|
+
worker_connections 1024;
|
44
50
|
|
45
51
|
}
|
46
52
|
|
@@ -48,59 +54,65 @@
|
|
48
54
|
|
49
55
|
http {
|
50
56
|
|
51
|
-
upstream nginx-internal-sock {
|
57
|
+
upstream nginx-internal-sock {
|
52
|
-
|
58
|
+
|
53
|
-
server unix:/run/go.sock;
|
59
|
+
server unix:/run/go.sock;
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
server {
|
66
|
+
|
67
|
+
listen 80;
|
68
|
+
|
69
|
+
# listen 443;
|
70
|
+
|
71
|
+
server_name orderup-api.local;
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
real_ip_header X-Forwarded-For;
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
location / {
|
80
|
+
|
81
|
+
proxy_http_version 1.1;
|
82
|
+
|
83
|
+
proxy_set_header Upgrade $http_upgrade;
|
84
|
+
|
85
|
+
proxy_set_header Connection "upgrade";
|
86
|
+
|
87
|
+
proxy_set_header Host $host;
|
88
|
+
|
89
|
+
proxy_set_header X-Real-IP $remote_addr;
|
90
|
+
|
91
|
+
proxy_set_header Accept-Encoding "";
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
proxy_pass http://nginx-internal-sock/;
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
# root /usr/share/nginx/html;
|
100
|
+
|
101
|
+
# index index.html;
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
}
|
54
106
|
|
55
107
|
}
|
56
108
|
|
57
|
-
|
58
|
-
|
59
|
-
|
109
|
+
```
|
60
|
-
|
61
|
-
|
110
|
+
|
62
|
-
|
63
|
-
|
111
|
+
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
112
|
+
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
location / {
|
72
|
-
|
73
|
-
proxy_http_version 1.1;
|
74
|
-
|
75
|
-
proxy_set_header Upgrade $http_upgrade;
|
76
|
-
|
77
|
-
proxy_set_header Connection "upgrade";
|
78
|
-
|
79
|
-
proxy_set_header Host $host;
|
80
|
-
|
81
|
-
proxy_set_header X-Real-IP $remote_addr;
|
82
|
-
|
83
|
-
proxy_set_header Accept-Encoding "";
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
proxy_pass http://nginx-internal-sock/;
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
}
|
92
|
-
|
93
|
-
}
|
94
|
-
|
95
|
-
}
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
113
|
+
( docker-compose.yml )
|
114
|
+
|
102
|
-
|
115
|
+
```ここに言語を入力
|
103
|
-
|
104
116
|
|
105
117
|
version: "3.5"
|
106
118
|
|
@@ -108,77 +120,153 @@
|
|
108
120
|
|
109
121
|
services:
|
110
122
|
|
111
|
-
golang:
|
123
|
+
golang:
|
124
|
+
|
112
|
-
|
125
|
+
env_file: .env
|
126
|
+
|
113
|
-
build: ./app
|
127
|
+
build: ./app
|
114
|
-
|
128
|
+
|
115
|
-
tty: true
|
129
|
+
tty: true
|
116
|
-
|
130
|
+
|
117
|
-
restart: always
|
131
|
+
restart: always
|
118
|
-
|
132
|
+
|
119
|
-
container_name: golang
|
133
|
+
container_name: golang
|
134
|
+
|
135
|
+
volumes:
|
136
|
+
|
137
|
+
- sample_api_socket:/run:z
|
138
|
+
|
139
|
+
- ./app:/go/src/github.com/test-api/app
|
140
|
+
|
141
|
+
- ./log:/var/log/test-api
|
142
|
+
|
143
|
+
networks:
|
144
|
+
|
145
|
+
- sample_api_network
|
146
|
+
|
147
|
+
nginx:
|
148
|
+
|
149
|
+
env_file: .env
|
150
|
+
|
151
|
+
build: ./nginx
|
152
|
+
|
153
|
+
container_name: nginx
|
154
|
+
|
155
|
+
restart: always
|
156
|
+
|
157
|
+
environment:
|
158
|
+
|
159
|
+
VIRTUAL_HOST: test-api.local
|
160
|
+
|
161
|
+
VIRTUAL_PORT: 80
|
162
|
+
|
163
|
+
# LETSENCRYPT_HOST: test-api.local
|
164
|
+
|
165
|
+
# LETSENCRYPT_EMAIL: admin@docker.local
|
166
|
+
|
167
|
+
volumes:
|
168
|
+
|
169
|
+
- sample_api_socket:/run:z
|
170
|
+
|
171
|
+
ports:
|
172
|
+
|
173
|
+
- "80"
|
174
|
+
|
175
|
+
networks:
|
176
|
+
|
177
|
+
- sample_api_network
|
178
|
+
|
179
|
+
- sample_shop_network
|
180
|
+
|
181
|
+
- services_network
|
182
|
+
|
183
|
+
depends_on:
|
184
|
+
|
185
|
+
- "golang"
|
186
|
+
|
187
|
+
minio:
|
188
|
+
|
189
|
+
env_file: .env
|
190
|
+
|
191
|
+
image: minio/minio:RELEASE.2019-07-05T21-20-21Z
|
192
|
+
|
193
|
+
container_name: minio
|
194
|
+
|
195
|
+
restart: always
|
196
|
+
|
197
|
+
environment:
|
198
|
+
|
199
|
+
VIRTUAL_HOST: test-minio.local
|
200
|
+
|
201
|
+
VIRTUAL_PORT: ${MINIO_PORT}
|
202
|
+
|
203
|
+
# LETSENCRYPT_HOST: test-minio.local
|
204
|
+
|
205
|
+
# LETSENCRYPT_EMAIL: admin@docker.local
|
206
|
+
|
207
|
+
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
208
|
+
|
209
|
+
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
210
|
+
|
211
|
+
volumes:
|
212
|
+
|
213
|
+
- ./minio/export:/export
|
214
|
+
|
215
|
+
- ./minio/data:/data/minio
|
216
|
+
|
217
|
+
ports:
|
218
|
+
|
219
|
+
- "${MINIO_PORT}"
|
220
|
+
|
221
|
+
networks:
|
222
|
+
|
223
|
+
- sample_api_network
|
224
|
+
|
225
|
+
- services_network
|
226
|
+
|
227
|
+
command: server /data/minio
|
228
|
+
|
229
|
+
|
120
230
|
|
121
231
|
volumes:
|
122
232
|
|
123
|
-
|
233
|
+
sample_api_socket:
|
124
|
-
|
125
|
-
|
234
|
+
|
126
|
-
|
127
|
-
|
235
|
+
external: true
|
236
|
+
|
237
|
+
|
128
238
|
|
129
239
|
networks:
|
130
240
|
|
131
|
-
\- api_network
|
132
|
-
|
133
|
-
nginx:
|
134
|
-
|
135
|
-
env_file: .env
|
136
|
-
|
137
|
-
build: ./nginx
|
138
|
-
|
139
|
-
container_name: nginx
|
140
|
-
|
141
|
-
restart: always
|
142
|
-
|
143
|
-
volumes:
|
144
|
-
|
145
|
-
\- api_socket:/run:z
|
146
|
-
|
147
|
-
ports:
|
148
|
-
|
149
|
-
\- "8899:80"
|
150
|
-
|
151
|
-
networks:
|
152
|
-
|
153
|
-
\- api_network
|
154
|
-
|
155
|
-
depends_on:
|
156
|
-
|
157
|
-
\- "golang"
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
volumes:
|
162
|
-
|
163
|
-
api_socket:
|
164
|
-
|
165
|
-
external: true
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
networks:
|
170
|
-
|
171
|
-
api_network:
|
241
|
+
sample_api_network:
|
172
|
-
|
242
|
+
|
173
|
-
name: sample_api
|
243
|
+
name: sample_api
|
174
|
-
|
244
|
+
|
175
|
-
driver: bridge
|
245
|
+
driver: bridge
|
246
|
+
|
247
|
+
sample_shop_network:
|
248
|
+
|
249
|
+
name: sample_shop
|
250
|
+
|
251
|
+
driver: bridge
|
252
|
+
|
253
|
+
services_network:
|
254
|
+
|
255
|
+
name: services
|
256
|
+
|
257
|
+
driver: bridge
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
```
|
262
|
+
|
263
|
+
|
176
264
|
|
177
265
|
|
178
266
|
|
179
267
|
## 試したこと
|
180
268
|
|
181
|
-
go.sock は生成されるファイルだと考えているので、
|
269
|
+
nginx.conf の go.sock は生成されるファイルだと考えているので、
|
182
270
|
|
183
271
|
go.sock に対するディレクトリのパーミッションやユーザの変更。
|
184
272
|
|
2
test
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##
|
1
|
+
## 前提・実現したいこと
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
##
|
25
|
+
## 発生している問題・エラーメッセージ
|
26
26
|
|
27
27
|
|
28
28
|
|
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
##
|
33
|
+
## 該当のソースコード
|
34
34
|
|
35
35
|
|
36
36
|
|
@@ -108,7 +108,7 @@
|
|
108
108
|
|
109
109
|
services:
|
110
110
|
|
111
|
-
|
111
|
+
golang:
|
112
112
|
|
113
113
|
build: ./app
|
114
114
|
|
@@ -120,15 +120,15 @@
|
|
120
120
|
|
121
121
|
volumes:
|
122
122
|
|
123
|
-
-
|
123
|
+
\- api_socket:/run:z
|
124
|
-
|
124
|
+
|
125
|
-
-
|
125
|
+
\- ./app:/go/src/github.com/dummy/app
|
126
|
-
|
126
|
+
|
127
|
-
-
|
127
|
+
\- ./log:/var/log/dummy
|
128
128
|
|
129
129
|
networks:
|
130
130
|
|
131
|
-
-
|
131
|
+
\- api_network
|
132
132
|
|
133
133
|
nginx:
|
134
134
|
|
@@ -142,19 +142,19 @@
|
|
142
142
|
|
143
143
|
volumes:
|
144
144
|
|
145
|
-
-
|
145
|
+
\- api_socket:/run:z
|
146
146
|
|
147
147
|
ports:
|
148
148
|
|
149
|
-
-
|
149
|
+
\- "8899:80"
|
150
150
|
|
151
151
|
networks:
|
152
152
|
|
153
|
-
-
|
153
|
+
\- api_network
|
154
154
|
|
155
155
|
depends_on:
|
156
156
|
|
157
|
-
-
|
157
|
+
\- "golang"
|
158
158
|
|
159
159
|
|
160
160
|
|
1
可読性
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
-
( nginx.conf )
|
37
|
+
###( nginx.conf )
|
38
38
|
|
39
39
|
|
40
40
|
|
@@ -60,8 +60,6 @@
|
|
60
60
|
|
61
61
|
listen 80;
|
62
62
|
|
63
|
-
# listen 443;
|
64
|
-
|
65
63
|
server_name localhost;
|
66
64
|
|
67
65
|
|
@@ -90,21 +88,17 @@
|
|
90
88
|
|
91
89
|
|
92
90
|
|
93
|
-
# root /usr/share/nginx/html;
|
94
|
-
|
95
|
-
# index index.html;
|
96
|
-
|
97
|
-
}
|
91
|
+
}
|
98
|
-
|
92
|
+
|
99
|
-
}
|
93
|
+
}
|
100
|
-
|
94
|
+
|
101
|
-
}
|
95
|
+
}
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
107
|
-
( docker-compose.yml )
|
101
|
+
###( docker-compose.yml )
|
108
102
|
|
109
103
|
|
110
104
|
|
@@ -114,7 +108,7 @@
|
|
114
108
|
|
115
109
|
services:
|
116
110
|
|
117
|
-
golang:
|
111
|
+
golang:
|
118
112
|
|
119
113
|
build: ./app
|
120
114
|
|
@@ -126,15 +120,15 @@
|
|
126
120
|
|
127
121
|
volumes:
|
128
122
|
|
129
|
-
- api_socket:/run:z
|
123
|
+
-\ api_socket:/run:z
|
130
|
-
|
124
|
+
|
131
|
-
- ./app:/go/src/github.com/dummy/app
|
125
|
+
-\ ./app:/go/src/github.com/dummy/app
|
132
|
-
|
126
|
+
|
133
|
-
- ./log:/var/log/dummy
|
127
|
+
-\ ./log:/var/log/dummy
|
134
128
|
|
135
129
|
networks:
|
136
130
|
|
137
|
-
- api_network
|
131
|
+
-\ api_network
|
138
132
|
|
139
133
|
nginx:
|
140
134
|
|
@@ -148,19 +142,19 @@
|
|
148
142
|
|
149
143
|
volumes:
|
150
144
|
|
151
|
-
- api_socket:/run:z
|
145
|
+
-\ api_socket:/run:z
|
152
146
|
|
153
147
|
ports:
|
154
148
|
|
155
|
-
- "8899:80"
|
149
|
+
-\ "8899:80"
|
156
150
|
|
157
151
|
networks:
|
158
152
|
|
159
|
-
- api_network
|
153
|
+
-\ api_network
|
160
154
|
|
161
155
|
depends_on:
|
162
156
|
|
163
|
-
- "golang"
|
157
|
+
-\ "golang"
|
164
158
|
|
165
159
|
|
166
160
|
|
@@ -182,7 +176,7 @@
|
|
182
176
|
|
183
177
|
|
184
178
|
|
185
|
-
##
|
179
|
+
## 試したこと
|
186
180
|
|
187
181
|
go.sock は生成されるファイルだと考えているので、
|
188
182
|
|
@@ -196,7 +190,7 @@
|
|
196
190
|
|
197
191
|
|
198
192
|
|
199
|
-
##
|
193
|
+
## 補足情報 (FW/ツールのバージョンなど)
|
200
194
|
|
201
195
|
|
202
196
|
|
@@ -204,4 +198,4 @@
|
|
204
198
|
|
205
199
|
Google Chrome
|
206
200
|
|
207
|
-
80.0.3987.163
|
201
|
+
80.0.3987.163
|