Answer the question
In order to leave comments, you need to log in
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
# 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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question