An open API service indexing awesome lists of open source software.

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

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.