質問編集履歴

2

a

2020/04/04 07:18

投稿

larara
larara

スコア11

test CHANGED
File without changes
test CHANGED
@@ -85,255 +85,3 @@
85
85
  libSSH Version libssh2/1.8.0
86
86
 
87
87
  ```
88
-
89
-
90
-
91
- ####docker-compose.yml
92
-
93
- ```
94
-
95
- version: '2'
96
-
97
- services:
98
-
99
- php-fpm:
100
-
101
- build: php-fpm
102
-
103
- container_name: php-fpm
104
-
105
- ports:
106
-
107
- - 9001:9000
108
-
109
- volumes:
110
-
111
- - ../src:/var/www/html/
112
-
113
- links:
114
-
115
- - db
116
-
117
- nginx:
118
-
119
- build: nginx
120
-
121
- container_name: nginx
122
-
123
- ports:
124
-
125
- - 8081:80
126
-
127
- volumes:
128
-
129
- - ../src:/var/www/html/
130
-
131
- links:
132
-
133
- - php-fpm
134
-
135
- db:
136
-
137
- image: mysql:8.0.16
138
-
139
- command: --default-authentication-plugin=mysql_native_password
140
-
141
- volumes:
142
-
143
- - ./mysql/my.cnf:/etc/mysql/conf.d/my.cnf
144
-
145
- - ./mysql/logs:/var/log/mysql
146
-
147
- container_name: db
148
-
149
- ports:
150
-
151
- - 3309:3306
152
-
153
-
154
-
155
- ```
156
-
157
-
158
-
159
- #### Dockerfile (nginx)
160
-
161
- ```
162
-
163
- FROM debian:jessie
164
-
165
-
166
-
167
- RUN apt-get update && \
168
-
169
- apt-get install -y nginx && \
170
-
171
- apt-get clean && \
172
-
173
- rm -rf /var/lib/apt/lists/*
174
-
175
-
176
-
177
- COPY nginx.conf /etc/nginx/
178
-
179
- COPY app.conf /etc/nginx/sites-available/
180
-
181
-
182
-
183
- RUN ln -s /etc/nginx/sites-available/app.conf /etc/nginx/sites-enabled/app
184
-
185
- RUN rm /etc/nginx/sites-enabled/default
186
-
187
-
188
-
189
- RUN echo "upstream php-upstream { server php-fpm:9000; }" > /etc/nginx/conf.d/upstream.conf
190
-
191
-
192
-
193
- RUN usermod -u 1000 www-data
194
-
195
-
196
-
197
- CMD ["nginx"]
198
-
199
-
200
-
201
- EXPOSE 80
202
-
203
- EXPOSE 443
204
-
205
-
206
-
207
- ```
208
-
209
-
210
-
211
- #### Dockerfile (php-fpm)
212
-
213
- ```
214
-
215
- FROM php:7.2-fpm
216
-
217
-
218
-
219
- RUN apt-get update && apt-get install -y \
220
-
221
- curl \
222
-
223
- wget \
224
-
225
- git \
226
-
227
- libfreetype6-dev \
228
-
229
- libjpeg62-turbo-dev \
230
-
231
- libmcrypt-dev \
232
-
233
- libpq-dev \
234
-
235
- libzip-dev \
236
-
237
- libicu-dev \
238
-
239
- autoconf \
240
-
241
- automake \
242
-
243
- build-essential \
244
-
245
- cmake \
246
-
247
- git-core \
248
-
249
- libass-dev \
250
-
251
- libfreetype6-dev \
252
-
253
- libsdl2-dev \
254
-
255
- libtool \
256
-
257
- libva-dev \
258
-
259
- libvdpau-dev \
260
-
261
- libvorbis-dev \
262
-
263
- libxcb1-dev \
264
-
265
- libxcb-shm0-dev \
266
-
267
- libxcb-xfixes0-dev \
268
-
269
- pkg-config \
270
-
271
- texinfo \
272
-
273
- zlib1g-dev \
274
-
275
- ffmpeg \
276
-
277
- && docker-php-ext-install -j$(nproc) iconv mbstring mysqli pdo_mysql zip pdo_pgsql pgsql \
278
-
279
- && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
280
-
281
- && docker-php-ext-install -j$(nproc) gd
282
-
283
-
284
-
285
- COPY symfony.pool.conf /usr/local/etc/
286
-
287
-
288
-
289
- # install php composer
290
-
291
- RUN curl -sS https://getcomposer.org/installer | php
292
-
293
- RUN mv composer.phar /usr/local/bin/composer
294
-
295
-
296
-
297
- RUN docker-php-ext-install exif
298
-
299
- RUN docker-php-ext-configure exif \
300
-
301
- --enable-exif
302
-
303
-
304
-
305
- RUN usermod -u 1000 www-data
306
-
307
-
308
-
309
- # install Application
310
-
311
- #USER www-data
312
-
313
- #WORKDIR /var/www/html
314
-
315
- #RUN composer install
316
-
317
-
318
-
319
- EXPOSE 9000
320
-
321
- CMD ["php-fpm", "-F"]
322
-
323
-
324
-
325
- ```
326
-
327
- ### 補足情報(FW/ツールのバージョンなど)
328
-
329
-
330
-
331
- ・Dockerで構築しております。
332
-
333
-
334
-
335
-
336
-
337
- # FROM debian:jessie
338
-
339
- ここに原因があるのでしょうか?

1

2020/04/04 07:18

投稿

larara
larara

スコア11

test CHANGED
File without changes
test CHANGED
@@ -88,8 +88,252 @@
88
88
 
89
89
 
90
90
 
91
+ ####docker-compose.yml
92
+
93
+ ```
94
+
95
+ version: '2'
96
+
97
+ services:
98
+
99
+ php-fpm:
100
+
101
+ build: php-fpm
102
+
103
+ container_name: php-fpm
104
+
105
+ ports:
106
+
107
+ - 9001:9000
108
+
109
+ volumes:
110
+
111
+ - ../src:/var/www/html/
112
+
113
+ links:
114
+
115
+ - db
116
+
117
+ nginx:
118
+
119
+ build: nginx
120
+
121
+ container_name: nginx
122
+
123
+ ports:
124
+
125
+ - 8081:80
126
+
127
+ volumes:
128
+
129
+ - ../src:/var/www/html/
130
+
131
+ links:
132
+
133
+ - php-fpm
134
+
135
+ db:
136
+
137
+ image: mysql:8.0.16
138
+
139
+ command: --default-authentication-plugin=mysql_native_password
140
+
141
+ volumes:
142
+
143
+ - ./mysql/my.cnf:/etc/mysql/conf.d/my.cnf
144
+
145
+ - ./mysql/logs:/var/log/mysql
146
+
147
+ container_name: db
148
+
149
+ ports:
150
+
151
+ - 3309:3306
152
+
153
+
154
+
155
+ ```
156
+
157
+
158
+
159
+ #### Dockerfile (nginx)
160
+
161
+ ```
162
+
163
+ FROM debian:jessie
164
+
165
+
166
+
167
+ RUN apt-get update && \
168
+
169
+ apt-get install -y nginx && \
170
+
171
+ apt-get clean && \
172
+
173
+ rm -rf /var/lib/apt/lists/*
174
+
175
+
176
+
177
+ COPY nginx.conf /etc/nginx/
178
+
179
+ COPY app.conf /etc/nginx/sites-available/
180
+
181
+
182
+
183
+ RUN ln -s /etc/nginx/sites-available/app.conf /etc/nginx/sites-enabled/app
184
+
185
+ RUN rm /etc/nginx/sites-enabled/default
186
+
187
+
188
+
189
+ RUN echo "upstream php-upstream { server php-fpm:9000; }" > /etc/nginx/conf.d/upstream.conf
190
+
191
+
192
+
193
+ RUN usermod -u 1000 www-data
194
+
195
+
196
+
197
+ CMD ["nginx"]
198
+
199
+
200
+
201
+ EXPOSE 80
202
+
203
+ EXPOSE 443
204
+
205
+
206
+
207
+ ```
208
+
209
+
210
+
211
+ #### Dockerfile (php-fpm)
212
+
213
+ ```
214
+
215
+ FROM php:7.2-fpm
216
+
217
+
218
+
219
+ RUN apt-get update && apt-get install -y \
220
+
221
+ curl \
222
+
223
+ wget \
224
+
225
+ git \
226
+
227
+ libfreetype6-dev \
228
+
229
+ libjpeg62-turbo-dev \
230
+
231
+ libmcrypt-dev \
232
+
233
+ libpq-dev \
234
+
235
+ libzip-dev \
236
+
237
+ libicu-dev \
238
+
239
+ autoconf \
240
+
241
+ automake \
242
+
243
+ build-essential \
244
+
245
+ cmake \
246
+
247
+ git-core \
248
+
249
+ libass-dev \
250
+
251
+ libfreetype6-dev \
252
+
253
+ libsdl2-dev \
254
+
255
+ libtool \
256
+
257
+ libva-dev \
258
+
259
+ libvdpau-dev \
260
+
261
+ libvorbis-dev \
262
+
263
+ libxcb1-dev \
264
+
265
+ libxcb-shm0-dev \
266
+
267
+ libxcb-xfixes0-dev \
268
+
269
+ pkg-config \
270
+
271
+ texinfo \
272
+
273
+ zlib1g-dev \
274
+
275
+ ffmpeg \
276
+
277
+ && docker-php-ext-install -j$(nproc) iconv mbstring mysqli pdo_mysql zip pdo_pgsql pgsql \
278
+
279
+ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
280
+
281
+ && docker-php-ext-install -j$(nproc) gd
282
+
283
+
284
+
285
+ COPY symfony.pool.conf /usr/local/etc/
286
+
287
+
288
+
289
+ # install php composer
290
+
291
+ RUN curl -sS https://getcomposer.org/installer | php
292
+
293
+ RUN mv composer.phar /usr/local/bin/composer
294
+
295
+
296
+
297
+ RUN docker-php-ext-install exif
298
+
299
+ RUN docker-php-ext-configure exif \
300
+
301
+ --enable-exif
302
+
303
+
304
+
305
+ RUN usermod -u 1000 www-data
306
+
307
+
308
+
309
+ # install Application
310
+
311
+ #USER www-data
312
+
313
+ #WORKDIR /var/www/html
314
+
315
+ #RUN composer install
316
+
317
+
318
+
319
+ EXPOSE 9000
320
+
321
+ CMD ["php-fpm", "-F"]
322
+
323
+
324
+
325
+ ```
326
+
91
327
  ### 補足情報(FW/ツールのバージョンなど)
92
328
 
93
329
 
94
330
 
95
331
  ・Dockerで構築しております。
332
+
333
+
334
+
335
+
336
+
337
+ # FROM debian:jessie
338
+
339
+ ここに原因があるのでしょうか?