Skip to content

Conversation

@Berckk
Copy link

@Berckk Berckk commented Nov 19, 2019

Почту прописал [email protected], но можно поменять.
Прошу проверить и принять.

- "80:80"
- "443:443"
depends_on:
- nginx-gen
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно вопрос - теперь получается нужно 3 nginx-а? Как это работает?

- site
- site-dev

- nginx-web
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я не понял основную идею. У нас есть теперь новый nginx, на 80 и 443 и у нас есть старый nginx, который теперь внутри периметра... И есть еще какой-то gen... Как это работает? Почему именно так?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я за основу взял docker-compose из этого репозитория и немного модифицировал.
Фактически да добавляется еще nginx-прокси и решение получается несколько избыточным, но зато универсальным.
Добавление еще одного виртуального хоста сводится к записи настроек в compose файл.
Можно убрать nginx-simple и тогда nginx-web будет сразу перенаправлять на site_osweb, site_osweb:dev и jenkins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants