File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ version: '2'
2
2
services :
3
3
php :
4
4
build : ./docker/php/
5
+ depends_on :
6
+ - mysql
5
7
environment :
6
8
TIMEZONE : Europe/Paris
7
9
XDEBUG_REMOTE_HOST : 10.200.10.1
@@ -23,3 +25,13 @@ services:
23
25
- ./docker/nginx/app.conf:/etc/nginx/conf.d/default.conf:ro
24
26
ports :
25
27
- 80:80
28
+
29
+ mysql :
30
+ image : mysql:5.6
31
+ environment :
32
+ MYSQL_ROOT_PASSWORD : root_password_test
33
+ MYSQL_DATABASE : db_test
34
+ MYSQL_USER : user_test
35
+ MYSQL_PASSWORD : password_test
36
+ ports :
37
+ - " 3306:3306"
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ RUN apt-get install -y \
25
25
&& docker-php-ext-install gd \
26
26
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
27
27
28
+ RUN docker-php-ext-install pdo_mysql
29
+
28
30
# Fix permissions
29
31
RUN usermod -u 1000 www-data
30
32
You can’t perform that action at this time.
0 commit comments