質問編集履歴
2
ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿
|
test
CHANGED
@@ -1,191 +1 @@
|
|
1
|
-
### 前提・実現したいこと
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
laravel6.0でのredisを使用すること
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
### 発生している問題・エラーメッセージ
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
```
|
14
|
-
|
15
|
-
エラーメッセージ
|
16
|
-
|
17
|
-
"message": "Please remove or rename the Redis facade alias in your \"app\" configuration file in order to avoid collision with the PHP Redis extension.",
|
18
|
-
|
19
|
-
```
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
### 該当のソースコード
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
```Dockerfile
|
28
|
-
|
29
|
-
FROM php:7.3.0-fpm
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
RUN apt-get update && apt-get install -y \
|
34
|
-
|
35
|
-
git \
|
36
|
-
|
37
|
-
&& docker-php-ext-install -j$(nproc) iconv mbstring mysqli pdo_mysql zip pdo_pgsql pgsql \
|
38
|
-
|
39
|
-
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
|
40
|
-
|
41
|
-
&& docker-php-ext-install -j$(nproc) gd
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
RUN git clone https://github.com/phpredis/phpredis.git /usr/src/php/ext/redis
|
46
|
-
|
47
|
-
RUN docker-php-ext-install redis
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
RUN curl -sS https://getcomposer.org/installer | php
|
52
|
-
|
53
|
-
RUN mv composer.phar /usr/local/bin/composer
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
EXPOSE 9000
|
58
|
-
|
59
|
-
|
1
|
+
ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿ミス投稿
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
```
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
### 試したこと
|
68
|
-
|
69
|
-
下記のURLを参考にしてbuildし直しましたが変わらなかったです。
|
70
|
-
|
71
|
-
https://qiita.com/ucan-lab/items/e65efd3b5e8d39f482ec
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
```
|
76
|
-
|
77
|
-
RUN git clone https://github.com/phpredis/phpredis.git /usr/src/php/ext/redis
|
78
|
-
|
79
|
-
RUN docker-php-ext-install redis
|
80
|
-
|
81
|
-
```
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
### 補足情報(FW/ツールのバージョンなど)
|
86
|
-
|
87
|
-
https://github.com/laravel/framework/issues/29864
|
88
|
-
|
89
|
-
上記も参考にはしております。
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
phpiniなどでインストール済みなのかも確認できるのか確認したいです。
|
94
|
-
|
95
|
-
ご教授ください。
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
### 追記
|
102
|
-
|
103
|
-
`docker-compose.yml`
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
```
|
108
|
-
|
109
|
-
version: '2'
|
110
|
-
|
111
|
-
services:
|
112
|
-
|
113
|
-
php-fpm:
|
114
|
-
|
115
|
-
build: php-fpm
|
116
|
-
|
117
|
-
container_name: php-fpm
|
118
|
-
|
119
|
-
ports:
|
120
|
-
|
121
|
-
- 9001:9000
|
122
|
-
|
123
|
-
volumes:
|
124
|
-
|
125
|
-
- ../src:/var/www/html/
|
126
|
-
|
127
|
-
links:
|
128
|
-
|
129
|
-
- db
|
130
|
-
|
131
|
-
nginx:
|
132
|
-
|
133
|
-
build: nginx
|
134
|
-
|
135
|
-
container_name: nginx
|
136
|
-
|
137
|
-
ports:
|
138
|
-
|
139
|
-
- 8086:80
|
140
|
-
|
141
|
-
volumes:
|
142
|
-
|
143
|
-
- ../src:/var/www/html/
|
144
|
-
|
145
|
-
links:
|
146
|
-
|
147
|
-
- php-fpm
|
148
|
-
|
149
|
-
db:
|
150
|
-
|
151
|
-
image: mysql:8.0.3
|
152
|
-
|
153
|
-
volumes:
|
154
|
-
|
155
|
-
- ./mysql/my.cnf:/etc/mysql/conf.d/my.cnf
|
156
|
-
|
157
|
-
container_name: db
|
158
|
-
|
159
|
-
ports:
|
160
|
-
|
161
|
-
- 33007:3306
|
162
|
-
|
163
|
-
environment:
|
164
|
-
|
165
|
-
MYSQL_DATABASE: asdf1234
|
166
|
-
|
167
|
-
MYSQL_USER: asdf1234
|
168
|
-
|
169
|
-
MYSQL_PASSWORD: asdf1234
|
170
|
-
|
171
|
-
MYSQL_ROOT_PASSWORD: asdf1234
|
172
|
-
|
173
|
-
redis:
|
174
|
-
|
175
|
-
image: redis:latest
|
176
|
-
|
177
|
-
container_name: redis
|
178
|
-
|
179
|
-
volumes:
|
180
|
-
|
181
|
-
- ./redis:/data
|
182
|
-
|
183
|
-
ports:
|
184
|
-
|
185
|
-
- "6379:6379"
|
186
|
-
|
187
|
-
command: redis-server --appendonly yes
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
```
|
1
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -93,3 +93,99 @@
|
|
93
93
|
phpiniなどでインストール済みなのかも確認できるのか確認したいです。
|
94
94
|
|
95
95
|
ご教授ください。
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
### 追記
|
102
|
+
|
103
|
+
`docker-compose.yml`
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
```
|
108
|
+
|
109
|
+
version: '2'
|
110
|
+
|
111
|
+
services:
|
112
|
+
|
113
|
+
php-fpm:
|
114
|
+
|
115
|
+
build: php-fpm
|
116
|
+
|
117
|
+
container_name: php-fpm
|
118
|
+
|
119
|
+
ports:
|
120
|
+
|
121
|
+
- 9001:9000
|
122
|
+
|
123
|
+
volumes:
|
124
|
+
|
125
|
+
- ../src:/var/www/html/
|
126
|
+
|
127
|
+
links:
|
128
|
+
|
129
|
+
- db
|
130
|
+
|
131
|
+
nginx:
|
132
|
+
|
133
|
+
build: nginx
|
134
|
+
|
135
|
+
container_name: nginx
|
136
|
+
|
137
|
+
ports:
|
138
|
+
|
139
|
+
- 8086:80
|
140
|
+
|
141
|
+
volumes:
|
142
|
+
|
143
|
+
- ../src:/var/www/html/
|
144
|
+
|
145
|
+
links:
|
146
|
+
|
147
|
+
- php-fpm
|
148
|
+
|
149
|
+
db:
|
150
|
+
|
151
|
+
image: mysql:8.0.3
|
152
|
+
|
153
|
+
volumes:
|
154
|
+
|
155
|
+
- ./mysql/my.cnf:/etc/mysql/conf.d/my.cnf
|
156
|
+
|
157
|
+
container_name: db
|
158
|
+
|
159
|
+
ports:
|
160
|
+
|
161
|
+
- 33007:3306
|
162
|
+
|
163
|
+
environment:
|
164
|
+
|
165
|
+
MYSQL_DATABASE: asdf1234
|
166
|
+
|
167
|
+
MYSQL_USER: asdf1234
|
168
|
+
|
169
|
+
MYSQL_PASSWORD: asdf1234
|
170
|
+
|
171
|
+
MYSQL_ROOT_PASSWORD: asdf1234
|
172
|
+
|
173
|
+
redis:
|
174
|
+
|
175
|
+
image: redis:latest
|
176
|
+
|
177
|
+
container_name: redis
|
178
|
+
|
179
|
+
volumes:
|
180
|
+
|
181
|
+
- ./redis:/data
|
182
|
+
|
183
|
+
ports:
|
184
|
+
|
185
|
+
- "6379:6379"
|
186
|
+
|
187
|
+
command: redis-server --appendonly yes
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
```
|