D
D
Dmitry Tarasov2018-06-05 00:15:40
LAMP
Dmitry Tarasov, 2018-06-05 00:15:40

Why is docker compose lamp not working?

Hello everyone, there is a docker for mac (desktop) on the machine, put a docker-compose-lamp ( https://github.com/cytopia/devilbox) on it, everything works. Then I decided to install Docker Toolbox, disabled docker which is desktop, I run docker quickStart terminal, then docker-compose up -d, everything starts up, but nothing works, that is, I can’t go to the site at localhost, which I always go to, it’s possible that - I don't do that.

BRAIN:docker-compose-lamp fast$ docker-compose down
Stopping png-webserver ... done
Stopping png-mysql     ... done
Removing png-phpmyadmin ... done
Removing png-webserver  ... done
Removing png-mysql      ... done
Removing png-redis      ... done
Removing network dockercomposelamp_default
BRAIN:docker-compose-lamp fast$ docker-compose up -d
Creating network "dockercomposelamp_default" with the default driver
Creating png-redis ... done
Creating png-mysql ... done
Creating png-phpmyadmin ... done
Creating png-webserver  ... done
BRAIN:docker-compose-lamp fast$ docker-compose top
png-mysql
UID   PID    PPID   C   STIME   TTY     TIME      CMD
-------------------------------------------------------
999   5135   5118   0   21:03   ?     00:00:00   mysqld

png-phpmyadmin
 UID     PID    PPID   C   STIME   TTY     TIME                               CMD
------------------------------------------------------------------------------------------------------------
root     4446   4430   4   21:03   ?     00:00:00   /usr/bin/python2 /usr/bin/supervisord --nodaemon
                                                    --configuration=/etc/supervisord.conf --loglevel=info
nobody   4742   4446   0   21:03   ?     00:00:00   php-fpm: master process (/etc/php-fpm.conf)
root     4743   4446   0   21:03   ?     00:00:00   nginx: master process nginx -c /etc/nginx.conf
nobody   4744   4743   0   21:03   ?     00:00:00   nginx: worker process
nobody   4745   4743   0   21:03   ?     00:00:00   nginx: worker process
nobody   4746   4743   0   21:03   ?     00:00:00   nginx: worker process
nobody   4747   4743   0   21:03   ?     00:00:00   nginx: worker process
nobody   4760   4742   0   21:03   ?     00:00:00   php-fpm: pool www
nobody   4761   4742   0   21:03   ?     00:00:00   php-fpm: pool www

png-redis
UID   PID    PPID   C   STIME   TTY     TIME             CMD
--------------------------------------------------------------------
999   4222   4200   0   21:03   ?     00:00:00   redis-server *:6379

png-webserver
UID    PID    PPID   C   STIME   TTY     TIME             CMD
----------------------------------------------------------------------
root   4421   4397   2   21:03   ?     00:00:00   apache2 -DFOREGROUND
33     4594   4421   0   21:03   ?     00:00:00   apache2 -DFOREGROUND
33     4595   4421   0   21:03   ?     00:00:00   apache2 -DFOREGROUND
33     4596   4421   0   21:03   ?     00:00:00   apache2 -DFOREGROUND
33     4597   4421   0   21:03   ?     00:00:00   apache2 -DFOREGROUND
33     4598   4421   0   21:03   ?     00:00:00   apache2 -DFOREGROUND

Next, we look
at the launch of kitematric and see
5b15aa7fc9964771183620.jpeg
that everything works, yes, everything really works. But only the address 192.168.99.100, one of the local hosts, works.
With docker desktop there were 3. One localhost was under the control of lamp, the other two were projects on them.
host file
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
127.0.0.1       ph-h.org.loc
127.0.0.1       ph-h.org.de
255.255.255.255 broadcasthost
::1             localhost

In general, xs why did I install docker for mac and docker toolbox, I now only understand that Docker Toolbox is needed if the machine is weak. In short, how to make it work without docker desktop, all 3 hosts?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question