You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running docker-compose up -d nginx mysql phpmyadmin redis I can access the site through the browser with http://localhost
However, I plan on running several docker containers with different configurations in my development environment such as: http://project-a.test http://project-b.test
I've loaded Laradock within the project directory with git submodule add ... and gave a unique name in the .env file for 'COMPOSE_PROJECT_NAME'
Created the conf file for the site in: docker-project/laradock-docker-project/nginx/sites/docker-project.conf
`
Unfortunately, the only way to access the development site is with "http://localhost" which limits the ability to develop multiple websites with laradock.
What am I missing?
The text was updated successfully, but these errors were encountered:
jvv8
changed the title
How to configure host domain on development machine
How to configure /etc/host domain on OSX development machine
Nov 20, 2019
Info:
Issue:
After running
docker-compose up -d nginx mysql phpmyadmin redis
I can access the site through the browser with http://localhostHowever, I plan on running several docker containers with different configurations in my development environment such as:
http://project-a.test
http://project-b.test
I've loaded Laradock within the project directory with
git submodule add ...
and gave a unique name in the .env file for 'COMPOSE_PROJECT_NAME'Created the conf file for the site in: docker-project/laradock-docker-project/nginx/sites/docker-project.conf
`
server {
listen 80;
listen [::]:80;
}
`
Using OSX, I edited /etc/hosts which is also running homestead for some previous projects:
Visiting http://localhost pulls up the docker-project
Visiting http://docker-project.test results in '404 Not Found (nginx)'
Expected behavior:
Visiting http://docker-project.test should pull up the docker project served with nginx
Unfortunately, the only way to access the development site is with "http://localhost" which limits the ability to develop multiple websites with laradock.
What am I missing?
The text was updated successfully, but these errors were encountered: