Docker build file for apache server v2.4 and up on Ubuntu 14.04
1.3K
Docker build file for Team City server. You need to have Docker installed and running to make this useful.
Container is exposing default apache ports 80 and 443.
This image is liekly to be used as a load balancer for another containers.
git clone https://github.com/gabrianoo/docker-apache.git
docker build -t docker-apache docker-apache
docker run -d --name docker-apache -p 80:80 -p 443:443 docker-apache
Go to the docker engine URL [I assume it is localhost] http://localhost
docker run -d --name apache -p 80:80 -p 443:443 otasys/apache
docker run -d --name teamcity-data otasys/teamcity-data
docker run -d --name teamcity --volumes-from teamcity-data otasys/teamcity:9.1.3
docker run -d --name apache -p 80:80 -p 443:443 --link teamcity:teamcity \
-v <PATH_TO_SITES_WITH_PROXY_CONF>:/etc/apache2/sites-available otasys/apache:2.4.7
<VirtualHost *:80>
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyPreserveHost On
ProxyPass /tc http://teamcity:8111/tc
ProxyPassReverse /tc http://teamcity:8111/tc
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
ProxyPreserveHost On
ProxyPass /tc http://teamcity:8111/tc
ProxyPassReverse /tc http://teamcity:8111/tc
</VirtualHost>
</IfModule>
Content type
Image
Digest
sha256:d4fdb844b…
Size
88 MB
Last updated
almost 11 years ago
docker pull otasys/apache