vagrant provision vs. docker build
Testing in sandbox
docker run -d -p 80:80 -v /home/user/www/:/usr/local/apache2/htdocs/ httpd
with jwilder/nginx-proxy
httpd:
image: httpd:2.4
ports:
- "80"
volumes:
- "/home/blog/www/:/usr/local/apache2/htdocs/"
environment:
- VIRTUAL_HOST=blog.domena.pl,www.blog.domena.pl
- VIRTUAL_PORT=80
docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock jwilder/nginx-proxy
docker compose up
docker run -p 80 -e VIRTUAL_HOST=jenkins.dhod.pl jenkins
docker run -p 9000 -e VIRTUAL_HOST=sonar.domena.pl -e VIRTUAL_PORT=9000 sonarqube
Jenkins
Sonar Cube
Simple http server
Nginx Reverse Proxy
docker run -it --privileged --name some-docker -d docker:dind
docker run -it --rm --link some-docker:docker docker sh