Answer the question
In order to leave comments, you need to log in
How to organize a web server in kubernetes?
Actually the question is how to properly organize a web server in a cluster?
There is an application using nginx, it needs to be sewn into each container? Or put one container with nginx and other containers with the application
Answer the question
In order to leave comments, you need to log in
in 1 container, or what will be in the container with the application, php files just lie? Or is there some kind of app server?
like this
# Базовый образ с nginx и php
FROM richarvey/nginx-php-fpm
# Добавляем наше веб приложение
ADD app /var/www/app
# Удаляем конфиги сайтов которые там есть
RUN rm -Rf /etc/nginx/sites-enabled/*
# Добавляем наш конфиг
ADD docker/conf/nginx/site.conf /etc/nginx/sites-available/site.conf
# Включаем его
RUN ln -s /etc/nginx/sites-available/site.conf /etc/nginx/sites-enabled/site.conf
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question