APのコンテナが複数あって、それを1つのnginxからリバースプロキシして振り分けることをしてみる。 まず、APコンテナは以下のDockerfileとする。 FROM debian:8.1 MAINTAINER 74th<site@j74th.com> RUN apt-get update RUN apt-get install -y apache2 libapache2-mod-php5 EXPOSE 80 VOLUME ["/var/www/html"] ENTRYPOINT service apache2 start && \ tail -f /var/log/apache2/access.log