https://github.com/codelit/docker-compose-multidomain-nginx-example
Docker compose multidomain nginx example
https://github.com/codelit/docker-compose-multidomain-nginx-example
Last synced: about 1 month ago
JSON representation
Docker compose multidomain nginx example
- Host: GitHub
- URL: https://github.com/codelit/docker-compose-multidomain-nginx-example
- Owner: CodeLit
- License: gpl-3.0
- Created: 2024-04-22T13:57:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T05:56:30.000Z (almost 2 years ago)
- Last Synced: 2025-10-14T18:41:45.881Z (5 months ago)
- Language: Makefile
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Docker compose multidomain nginx example
## Setup
1. Add these two lines of code:
```
127.0.0.1 site1.local
127.0.0.1 site2.local
```
into a `hosts` file:
```bash
# Windows
code c:/Windows/System32/Drivers/etc/hosts
# Linux
sudo nano /etc/hosts
```
2. First run
```bash
# Run it in every folder: this, site1 and site2
docker-compose up -d
# Or, if you have Make tool, run:
make up
```
## Connect to the domains
site1.local and site2.local are now reachable.