Skip to content

Добавил LETSENCRYPT в контейнерах. #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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-а? Как это работает?

volumes:
- web_content:/var/www/
depends_on:
- opm_hub
- 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