https://github.com/marioblazek/docker-varnish-nginx-php
A simple Docker configuration for PHP, nginx and Varnish
https://github.com/marioblazek/docker-varnish-nginx-php
docker nginx php symfony var varnish
Last synced: 3 months ago
JSON representation
A simple Docker configuration for PHP, nginx and Varnish
- Host: GitHub
- URL: https://github.com/marioblazek/docker-varnish-nginx-php
- Owner: MarioBlazek
- Created: 2020-03-10T08:47:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-10T13:47:54.000Z (over 5 years ago)
- Last Synced: 2025-05-04T02:40:21.856Z (5 months ago)
- Topics: docker, nginx, php, symfony, var, varnish
- Language: Shell
- Size: 20.5 KB
- Stars: 12
- Watchers: 1
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Docker config for nginx, Varnish and PHP
[](https://travis-ci.org/MarioBlazek/docker-varnish-nginx-php)
This is a simple Docker setup to play around PHP and Varnish.
To power up the Docker:
```bash
docker-compose up
```If you do any changes on Docker file, don't forget to build up the changes:
```bash
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:
```bash
docker container rm marek_varnish marek_php marek_nginx
```