Comments (4)
You need to edit hosts file on your PC + if you have port 80 as non-free - you can edit .env file in the root folder of you app like next (example):
WEB_PORT_HTTP=8080
WEB_PORT_SSL=8043
So, you app will be available like localhost:8080 (after rebuild).
from docker-nginx-php-laravel.
Thanks 👍
from docker-nginx-php-laravel.
@dimadeush If I write the domain name in nginx.conf
, other users have to change the domain name in their nginx.conf
every time. What is the best way to solve this problem? Thanks
from docker-nginx-php-laravel.
Hello Arthur
I don't know why do you need to change nginx.conf and why do you think that other users have to change it too. Maybe you are solving some your unique issue but I don't know anything about that. If I need to use some domain name and not localhost or 127.0.0.1 - I'm doing it via hosts file for my OS (https://www.hostinger.com/tutorials/wp-content/uploads/sites/2/2016/06/add-ip-address-on-hosts-file.webp).
from docker-nginx-php-laravel.
Related Issues (20)
- I cant exec it
- an unexpected error
- cron job HOT 1
- error for nginx
- Nginx error. [emerg] 1#1: host not found in upstream "laravel" in /etc/nginx/conf.d/default.conf:59 HOT 11
- vite & npm missing from container HOT 2
- can't connect to the database HOT 3
- make migrate throws error in SQL HOT 4
- No Redis included? HOT 2
- How to add SSL cert? HOT 1
- Files not copied over into container HOT 5
- Why we need to run composer install inside the docker file, if it will be overwritten with volumes. HOT 11
- Unable to start MySQL 8 container HOT 5
- Composer:latest HOT 4
- domain and subdomain in nginx HOT 1
- Question: Require private repo HOT 2
- unable to connect to dbbeaver HOT 2
- php-dev has no installation candidate HOT 2
- Why not create a Docker for choice a laravel version? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-nginx-php-laravel.