質問編集履歴
3
訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -142,7 +142,7 @@
|
|
142
142
|
|
143
143
|
|
144
144
|
|
145
|
-
```
|
145
|
+
```yml
|
146
146
|
|
147
147
|
version: "3"
|
148
148
|
|
2
追記・訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -98,6 +98,20 @@
|
|
98
98
|
|
99
99
|
###追記
|
100
100
|
|
101
|
+
ファイル構造は下記のようになっています。
|
102
|
+
|
103
|
+
```
|
104
|
+
|
105
|
+
┳docker-compose.yml
|
106
|
+
|
107
|
+
┗testapp-web┳Dockerfile
|
108
|
+
|
109
|
+
┗php.ini
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
```
|
114
|
+
|
101
115
|
|
102
116
|
|
103
117
|
```Dockerfile
|
@@ -123,3 +137,39 @@
|
|
123
137
|
docker-php-ext-enable xdebug
|
124
138
|
|
125
139
|
```
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
```docker-compose.yml
|
146
|
+
|
147
|
+
version: "3"
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
services:
|
152
|
+
|
153
|
+
#PHP + Apache
|
154
|
+
|
155
|
+
testapp-web:
|
156
|
+
|
157
|
+
container_name: testapp-web
|
158
|
+
|
159
|
+
build:
|
160
|
+
|
161
|
+
context: ./testapp-web/
|
162
|
+
|
163
|
+
dockerfile: Dockerfile
|
164
|
+
|
165
|
+
volumes:
|
166
|
+
|
167
|
+
- ../html:/var/www/html
|
168
|
+
|
169
|
+
- ./testapp-web:/usr/local/etc/php/7.4
|
170
|
+
|
171
|
+
ports:
|
172
|
+
|
173
|
+
- "80:80"
|
174
|
+
|
175
|
+
```
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -93,3 +93,33 @@
|
|
93
93
|
|
94
94
|
|
95
95
|
プログラミング初心者のため、問題の切り分けもできませんでした。アドバイスいただけるでしょうか。よろしくお願いします。
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
###追記
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
```Dockerfile
|
104
|
+
|
105
|
+
FROM php:7.4-apache
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
COPY ./php.ini /usr/local/etc/php/
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
RUN apt-get update &&\
|
114
|
+
|
115
|
+
apt-get install -y libpq-dev &&\
|
116
|
+
|
117
|
+
apt-get install -y vim &&\
|
118
|
+
|
119
|
+
docker-php-ext-install pdo pdo_pgsql pgsql &&\
|
120
|
+
|
121
|
+
pecl install xdebug &&\
|
122
|
+
|
123
|
+
docker-php-ext-enable xdebug
|
124
|
+
|
125
|
+
```
|