-
Notifications
You must be signed in to change notification settings - Fork 13
Добавил 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
base: master
Are you sure you want to change the base?
Conversation
- "80:80" | ||
- "443:443" | ||
depends_on: | ||
- nginx-gen |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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... Как это работает? Почему именно так?
There was a problem hiding this comment.
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.
Почту прописал [email protected], но можно поменять.
Прошу проверить и принять.