Skip to content

MarioBlazek/docker-varnish-nginx-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Docker config for nginx, Varnish and PHP

Build Status

This is a simple Docker setup to play around PHP and Varnish.

To power up the Docker:

docker-compose up

If you do any changes on Docker file, don't forget to build up the changes:

docker-compose up --build

Entering Docker containers:

  • PHP - docker exec -it marek_php /bin/bash
  • nginx - docker exec -it marek_nginx /bin/bash
  • Varnish - docker exec -it marek_varnish /bin/bash

Install Symfony:

  • enter PHP container
  • switch to /workspace directory
  • remove the php directory
  • execute symfony new php --no-git command
  • navigate to http://localhost:5001/ or http://localhost:5002/ and you should see a Symfony welcome page
  • enter Varnish container and clear cache if necessary varnishadm ban req.http.host == localhost:5002

To remove the containers enter:

docker container rm marek_varnish marek_php marek_nginx

About

A simple Docker configuration for PHP, nginx and Varnish

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published