Leave a Reply

13 Comments on "Setting up a Local PHP7 Development Environment with Docker and Compose"

Notify of
avatar

fkangalov
Guest
fkangalov
29 days 21 hours ago

Michael Stevens is that you?

Kirill Devope
Guest
Kirill Devope
1 month 19 days ago

I get "ERROR: for php7dockerized_web_1 Cannot start service web: driver failed programming external connectivity on endpoint php7dockerized_web_1"

TourchRV
Guest
TourchRV
1 month 30 days ago

You are really great MAN, thank pro.

Daniel Rodriguez del Villar Trimarchi
Guest
Daniel Rodriguez del Villar Trimarchi
4 months 28 days ago

I just saw this video and it's really great! What it Is missing is how to install and enable php extensions and configure the php.ini in the php docker container

John Paul Mariano
Guest
John Paul Mariano
5 months 27 days ago

Commands: $ git clone github.com/hamptonpaulk/php7-dockerized.git$ cd php7-dockerized$ docker-compose build$ docker-compose up -d$ docker exec php /bin/bash# php -v# exit$ docker exec -it 2 <container_id> bash# mysql -u root -p # passwordmysql > show databases;mysql > exit# exit$

阎涛
Guest
阎涛
5 months 9 days ago

why when i run "docker run php7dockerized_php:latest",it has a mistake ""daemon" directive is duplicate in /etc/nginx/nginx.conf:3"

banginpadr
Guest
banginpadr
7 months 17 days ago

can you please help me. i get this error 5.7.17����97]ga*{�ÿÿ�ÿÁ����������%ht+g~E.H�mysql_native_password���ÿ„Got packets out of order

Benjamin Wagener
Guest
Benjamin Wagener
9 months 2 days ago

Would be nice to have a tutorial like this for windows-users too.

Ghast Iconoclast
Guest
Ghast Iconoclast
9 months 9 days ago

I received the following errors:"debconf: delaying package configuration, since apt-utils is not installed""Service 'php' failed to build: The command '/bin/sh -c apt-key list | grep "expired:"' returned a non-zero code: 1"Any suggestions?

Marcin Gładkowski
Guest
Marcin Gładkowski
4 months 14 days ago
In docker-composer i have this: Which line i have to commenting out ? version: '2'services: php: build: . command: /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf ports: – "80:80" – "443:443" links: – mysql volumes: – ./www:/var/www – ./sites:/etc/nginx/conf.d – ./logs:/var/log/supervisor mysql: image: mysql ports: – "33061:3306" – "3306:3306" volumes: – ./mysql:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: password
Code School
Guest
Code School
8 months 23 days ago

Can you try commenting out that line in the docker-compose file? Place a # in front of the RUN apt-key list | grep "expired:"

Ghast Iconoclast
Guest
Ghast Iconoclast
9 months 3 days ago

I guess I should add that I am on Mac, Sierra 10.12.1

Błażej Michalik
Guest
Błażej Michalik
9 months 4 days ago

Same. Ubuntu 16.04, apt-utils present

wpDiscuz