jaouadk / homestead-docker Goto Github PK
View Code? Open in Web Editor NEWMulti app development container.
Multi app development container.
forgive me for being dense, but how do I connect my laravel app to the database in the other container?
2 months ago I ran the docker and created the 'default' file inside the 'sites-available' folder, but now it does not create any more, was there any change in the process?
I see a lot of "Deprecated in favor of laradock. Will you continue to support this homestead-docker?
I guess the whole purpose with the laradock concept of having every service in different containers and only serving one laravel project is so one could deploy "the whole package" to an production droplet?
For now i will only use Docker for development so i really like the idea of having only two containers and be able to have all my projects in two containers.
I really like to have your opinion on this @ShinCoder :)
I've noticed that the php version here has fallen behind, it's still at 5.9.9 whereas in the vagrant one it's at 5.6.15, could be a result of the ondrej ppa being removed(though what I've encountered is that putting it back required a public key update)?
Also, the latest mailparse of pecl requires php 7 (so this breaks during the image build as well), so specifying the version number might be required, however I found that after updating to php 5.6, mailparse is searched in /usr/lib/php5/20131226/mailparse.so whereas the current mailparse would still be location in folder /url/lib/php5/2012****/
I've got problem with permission when running serve.sh script:
homestead@0b05195898f3:/$ sudo ./serve.sh myapp.dev /apps/frid/server/public
[sudo] password for homestead:
./serve.sh: line 40: /etc/nginx/sites-available/myapp.dev: Permission denied
ln: failed to create symbolic link '/etc/nginx/sites-enabled/myapp.dev': Permission denied
nginx: stopped
nginx: started
this is how permissions for sites-available look like:
homestead@0b05195898f3:/$ ll /etc/nginx/sites-available/
total 4
drwxr-xr-x 2 root root 0 Jan 16 16:20 ./
drwxr-xr-x 1 root root 4096 Jan 16 15:33 ../
It seems like this is first time this is being reported. May be because I am on windows, my volumes mapping looks like this:
- ~/docker/homestead-custom/volumes/nginx/sites-available:/etc/nginx/sites-available
- ~/docker/homestead-custom/volumes/nginx/sites-enabled:/etc/nginx/sites-enabled
i am work in window operate system.
how can i use navicat to connect the mysql?
thank you for your help.
Hi,
Just love this project, made me leave Vagrant.
I have added
sed -i "s/post_max_size = .*/post_max_size = 99M/" /etc/php/7.0/fpm/php.ini
sed -i "s/upload_max_filesize = .*/upload_max_filesize = 99M/" /etc/php/7.0/fpm/php.ini
in provision.sh but i don know how to make it take effect?
Thank you.
Have you tried using this on a Mac with boot2docker? I can get the instance running, but since the docker container runs inside its own VM, there are so many port forwards. Any idea on how to access nginx on the docker container through the boot2docker VM?
Hi again,
Has anyone successfully configured phpStorm with xdebug with this project?
Using your image for a Bitbucket Pipeline build, and getting a mismatch on the PHP version.
Is it possible to update the php version?
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for ocramius/proxy-manager 2.0.3 -> satisfiable by ocramius/proxy-manager[2.0.3].
- ocramius/proxy-manager 2.0.3 requires php 7.0.0 - 7.0.5 || ^7.0.7 -> your PHP version (7.0.6) does not satisfy that requirement.
Problem 2
- ocramius/proxy-manager 2.0.3 requires php 7.0.0 - 7.0.5 || ^7.0.7 -> your PHP version (7.0.6) does not satisfy that requirement.
- doctrine/migrations 1.4.1 requires ocramius/proxy-manager ^1.0|^2.0 -> satisfiable by ocramius/proxy-manager[2.0.3].
- Installation request for doctrine/migrations 1.4.1 -> satisfiable by doctrine/migrations[1.4.1].
How I can install MongoDB using shincoder/homestead-docker?
Hello ! I just installed your container and tried to connect to web server. But there I got an error : "the connection was reset". I think the is no example project in this container if so sorry !
It would be interesting to clarify it :)
I need some help to upgrade php to 7.2 version.
Pulling repository docker.io/shincoder/homestead
ERROR: Error: image shincoder/homestead:latest not found
When i'm running xdebug i get "504 Gateway Time-out" and i wonder if there is an way to extend this somehow?
I'm using this docker on my mac for local developments, but the mysql in this container is very slow. How I can speed things up?
Step 6 : RUN ./provision.sh
---> Running in 0cf71dd767f2
: No such file or directory
I could not start the container, I got this error:
$ docker-compose up -d
Removing lumen
Recreating 5136e763cf0f_5136e763cf0f_5136e763cf0f_5136e763cf0f_5136e763cf0f_5136e763cf0f_5136e763cf0f_5136e763cf0f_5136e763cf0f_5136e763cf0f_homesteaddocker_lumen_1
�[31mERROR�[0m: Container command not found or does not exist.
Any hint?
Iḿ trying to connect to mysql, but iḿ receiving failed!
the application is ok, but de DB is failed...
Host: localhost:3306
user: root
password:
The image for homestead:php7.1 appears to be running php 7.3.3 after yesterdays update.
php -v
PHP 7.3.3-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Mar 7 2019 20:31:26) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.3, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.3-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
I cant get it to work on my mac.
ssh gives me access denied and no web och mysql connection
Thank you
When using Vagrant i could export an backup of my VM machine and load i locally or from my own github. Is it possible to do so with Docker?
Ran into few problems while installing, required these changes in start of the provision file :
export DEBIAN_FRONTEND=noninteractive
printf "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d
locale-gen en_US.UTF-8
export LANG=en_US.UTF-8
apt-key update
Hi,
I have some Joomla and WP sites that i ran in an Vagrantbox and since i would like to leave Vagrant/WM totally i came across this docker proj: https://github.com/rivenvirus/apache-php-multisite
Now i got this working but since i don't want to fiddle with ports other than 80 i cant run Laravel, Nginx, MariaDB sites att the same time as WP, Apache, MySQL sites.
When running Vagrant i had different IP:s on the Vagrant machines so there were no problems with port 80. This might be impossible to solve with Docker but if i could i really would like to mix these two dockers in some way.
Is this possible?
When I run sudo docker-compose up -d
I get this error (I'm on OS X):
ERROR: Couldn't connect to Docker daemon - you might need to run 'docker-machine start default'.
Then, if I run docker-machine start default
it says:
Machine "default" is already running.
I get "413 Request Entity Too Large" when trying to upload an 1.8MB image.
Should i change client_max_body_size like this: http://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/
Hello,
I dont know how to connect to the database. It looks like only the web container is available using HTTP.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b2f66165c50a shincoder/homestead:php7.3 "/usr/bin/supervisord" 21 minutes ago Up 21 minutes 9876/tcp, 35729/tcp, 0.0.0.0:2222->22/tcp, 0.0.0.0:8000->80/tcp homestead-docker_web_1
c713ffcce910 mysql:5.7 "docker-entrypoint.s…" 2 hours ago Up 11 minutes 3306/tcp, 33060/tcp
A little guide in the readme would be really great.
Hey Great job my friend with this image, it's been a while since chrome stopped the support of .dev tld on http protocol, now it is forcing us to use https, so can you please update the README.md and help me setup the SSL for myapp.dev
Hi guy, i need your help again! how to add Xdebug?
Hi,
Do you plan to update this to the latest official Laravel Homestead setup?
phpmyadmin should be included
By using Redis through the alias \Redis in Laravel, the below error occurs:
Fatal error: Non-static method Redis::keys() cannot be called statically
Hello.
I have a Mac with macOS Sierra Version 10.12.1.
I modified the script to ejcute MariaDB instead of MySQL.
Now I'm trying to connect to the database from MySQL WorkBench but which are not necessary parameters, any ideas please?
Greetings.
The soap extension seems to be missing by default, not sure if it was deliberate. Easy installed via apt-get though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.