Skip to content

Commit f3f2a90

Browse files
author
Julien Neuhart
committed
Update README with hosts configuration
1 parent 2e7842d commit f3f2a90

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,28 @@ Vagrant might also be a solution regarding performances.
4343
If not possible, you may also directly run the commands specified in the [Makefile](Makefile).
4444
For instance, instead of running `make up`, run `docker-compose up -d`.
4545

46-
### macOS and Windows
46+
#### Hosts
4747

48-
Update your `hosts` file with the following entry:
48+
Update your `hosts` file with the following entries:
4949

5050
```
51-
127.0.0.1 *.localhost
51+
127.0.0.1 traefik.companies-and-products.localhost
52+
127.0.0.1 companies-and-products.localhost
53+
127.0.0.1 api.companies-and-products.localhost
54+
127.0.0.1 phpmyadmin.companies-and-products.localhost
55+
127.0.0.1 minio.companies-and-products.localhost
56+
127.0.0.1 mailhog.companies-and-products.localhost
5257
```
5358

54-
On macOS, run `sudo nano /etc/hosts` to edit it.
59+
> Update the domain with the one used in your project.
60+
61+
On Linux and macOS, run `sudo nano /etc/hosts` to edit it.
5562

5663
On Windows, edit the file `C:\Windows\System32\drivers\etc\hosts` with administrative privileges.
5764

58-
If you're using Vagrant, check there is no application running on port 80 (like Apache or another virtual machine).
65+
### Vagrant
66+
67+
Check there is no application running on port 80 (like Apache or another virtual machine).
5968

6069
If OK, run `make vagrant`, then `vagrant up`, and finally `vagrant ssh` to connect to the virtual machine.
6170
From here, you'll be able to run all the next commands like Linux users!
@@ -106,7 +115,7 @@ Once everything is ready, the following endpoints should be available:
106115
* http://api.companies-and-products.localhost (API)
107116
* http://phpmyadmin.companies-and-products.localhost (phpMyAdmin, a web interface for your MySQL database)
108117
* http://minio.companies-and-products.localhost (S3 compatible storage)
109-
* http://mailhog.companies-and-products.loclahost (Emails catcher)
118+
* http://mailhog.companies-and-products.localhost (Emails catcher)
110119

111120
> Update the domain with the one used in your project.
112121

0 commit comments

Comments
 (0)