We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup using:
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash mv docker-compose.dev.yml docker-compose.dev-default.yml mv docker-compose.dev-ssh.yml docker-compose.dev.yml bin/download bin/setup magento.test
The docker-compose.yml is unchanged and docker-compose.dev.yml was copied from docker-compose.dev-ssh.yml
docker-compose.yml
docker-compose.dev.yml
docker-compose.dev-ssh.yml
Directory list on ssh container:
$ docker compose exec ssh ls /var/www/html nginx.conf
Directory list on phpfpm container:
$ docker compose exec phpfpm ls /var/www/html CHANGELOG.md SECURITY.md generated pub COPYING.txt app grunt-config.json.sample setup Gruntfile.js.sample auth.json.sample lib var LICENSE.txt bin nginx.conf vendor LICENSE_AFL.txt composer.json nginx.conf.sample LICENSE_EE.txt composer.lock package.json.sample README_EE.md dev phpserver
See all the running container IDs
09:56 $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 2948fd89a5ce markoshust/magento-nginx:1.18-7 "/docker-entrypoint.…" 20 minutes ago Up 2 minutes 80/tcp, 0.0.0.0:80->8000/tcp, :::80->8000/tcp, 0.0.0.0:443->8443/tcp, :::443->8443/tcp magento-app-1 73adb3d0a27c markoshust/magento-php:8.1-fpm-1 "docker-php-entrypoi…" 20 minutes ago Up 2 minutes 9000/tcp magento-phpfpm-1 288eb6ad56e1 markoshust/ssh "/usr/sbin/sshd -D" 20 minutes ago Up 2 minutes 0.0.0.0:222->22/tcp, :::222->22/tcp magento-ssh-1 4e5dc44ed6f1 sj26/mailcatcher "mailcatcher --foreg…" 31 minutes ago Up 2 minutes 1025/tcp, 0.0.0.0:1080->1080/tcp, :::1080->1080/tcp magento-mailcatcher-1 08941a5abbd6 markoshust/magento-rabbitmq:3.9-0 "docker-entrypoint.s…" 31 minutes ago Up 2 minutes 4369/tcp, 5671/tcp, 0.0.0.0:5672->5672/tcp, :::5672->5672/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 0.0.0.0:15672->15672/tcp, :::15672->15672/tcp magento-rabbitmq-1 45aa2695a08e markoshust/magento-elasticsearch:7.16-0 "/bin/tini -- /usr/l…" 31 minutes ago Up 2 minutes 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp magento-elasticsearch-1 49d56dfb55f2 mariadb:10.4 "docker-entrypoint.s…" 31 minutes ago Up 2 minutes 0.0.0.0:3306->3306/tcp, :::3306->3306/tcp magento-db-1 1330a5a37eed redis:6.2-alpine "docker-entrypoint.s…" 31 minutes ago Up 2 minutes 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp magento-redis-1
Get mounts from the ssh container:
$ docker inspect -f '{{ .Mounts }}' 288eb6ad56e1 [{bind /web/iav/magento/src/nginx.conf.sample /var/www/html/nginx.conf rw true rprivate}]
Get mounts from the php container:
$ docker inspect -f '{{ .Mounts }}' 73adb3d0a27c [{volume magento_sockdata /var/lib/docker/volumes/magento_sockdata/_data /sock local z true } {volume magento_appdata /var/lib/docker/volumes/magento_appdata/_data /var/www/html local z true } {bind /home/cornernote/.composer /var/www/.composer rw true rprivate} {bind /home/cornernote/.ssh/id_rsa /var/www/.ssh/id_rsa rw true rprivate} {bind /home/cornernote/.ssh/known_hosts /var/www/.ssh/known_hosts rw true rprivate} {bind /web/iav/magento/src/nginx.conf.sample /var/www/html/nginx.conf rw true rprivate} {volume dec3dbf27d41e4600e70d1954d92765a68fe6e572a6a31d3bc2f1ce95bf22b8e /var/lib/docker/volumes/dec3dbf27d41e4600e70d1954d92765a68fe6e572a6a31d3bc2f1ce95bf22b8e/_data /var/www local z true } {volume magento_ssldata /var/lib/docker/volumes/magento_ssldata/_data /etc/nginx/certs local z true }]
The text was updated successfully, but these errors were encountered:
quick fix is to add the ssh config to the docker-compose.yml, no need to expose the port as it's exposed in docker-compose.dev.yml:
ssh: image: markoshust/ssh volumes: *appvolumes
Sorry, something went wrong.
seems to be a duplicate of #686
No branches or pull requests
Setup using:
The
docker-compose.yml
is unchanged anddocker-compose.dev.yml
was copied fromdocker-compose.dev-ssh.yml
Directory list on ssh container:
Directory list on phpfpm container:
See all the running container IDs
Get mounts from the ssh container:
Get mounts from the php container:
The text was updated successfully, but these errors were encountered: