mirror of
https://github.com/cytopia/devilbox.git
synced 2025-01-18 02:40:04 +00:00
Ensure Varnish can mount custom configurations
This commit is contained in:
parent
325acdf89a
commit
6fb39c0e69
5
.gitignore
vendored
5
.gitignore
vendored
@ -98,6 +98,11 @@
|
||||
/cfg/php-startup-7.4/*.sh
|
||||
/cfg/php-startup-8.0/*.sh
|
||||
|
||||
# Ignorecustom Varnish configs
|
||||
/cfg/varnish-4/*.vcl
|
||||
/cfg/varnish-5/*.vcl
|
||||
/cfg/varnish-6/*.vcl
|
||||
|
||||
# Ignore custom PHP-FPM modules
|
||||
/mod/php-fpm-5.2/*.so
|
||||
/mod/php-fpm-5.3/*.so
|
||||
|
8
cfg/varnish-4/README.md
Normal file
8
cfg/varnish-4/README.md
Normal file
@ -0,0 +1,8 @@
|
||||
# Custom Varnish configuration
|
||||
|
||||
Place your `*.vcl` files here to customize Varnish.
|
||||
|
||||
* This directory will be mounted into `/etc/varnish.d/` into the Varnish container.
|
||||
* Ensure to point your `VARNISH_CONFIG` variable to `/etc/varnish.d/<my-file>.vcl` when you want to use it
|
||||
* Ensure to set your Backend server to `httpd` in your custom varnish config
|
||||
* Ensure to set your Backend port to `80` in your custom varnish config
|
8
cfg/varnish-5/README.md
Normal file
8
cfg/varnish-5/README.md
Normal file
@ -0,0 +1,8 @@
|
||||
# Custom Varnish configuration
|
||||
|
||||
Place your `*.vcl` files here to customize Varnish.
|
||||
|
||||
* This directory will be mounted into `/etc/varnish.d/` into the Varnish container.
|
||||
* Ensure to point your `VARNISH_CONFIG` variable to `/etc/varnish.d/<my-file>.vcl` when you want to use it
|
||||
* Ensure to set your Backend server to `httpd` in your custom varnish config
|
||||
* Ensure to set your Backend port to `80` in your custom varnish config
|
8
cfg/varnish-6/README.md
Normal file
8
cfg/varnish-6/README.md
Normal file
@ -0,0 +1,8 @@
|
||||
# Custom Varnish configuration
|
||||
|
||||
Place your `*.vcl` files here to customize Varnish.
|
||||
|
||||
* This directory will be mounted into `/etc/varnish.d/` into the Varnish container.
|
||||
* Ensure to point your `VARNISH_CONFIG` variable to `/etc/varnish.d/<my-file>.vcl` when you want to use it
|
||||
* Ensure to set your Backend server to `httpd` in your custom varnish config
|
||||
* Ensure to set your Backend port to `80` in your custom varnish config
|
@ -84,6 +84,8 @@ services:
|
||||
- VARNISHD_PARAMS=${VARNISH_PARAMS:--p default_ttl=3600 -p default_grace=3600}
|
||||
- BACKEND_HOST=httpd
|
||||
- BACKEND_PORT=80
|
||||
volumes:
|
||||
- ${DEVILBOX_PATH}/cfg/varnish-${VARNISH_SERVER:-6}:/etc/varnish.d
|
||||
depends_on:
|
||||
- bind
|
||||
- php
|
||||
|
@ -15,6 +15,8 @@ services:
|
||||
- VARNISHD_PARAMS=${VARNISH_PARAMS:--p default_ttl=3600 -p default_grace=3600}
|
||||
- BACKEND_HOST=httpd
|
||||
- BACKEND_PORT=80
|
||||
volumes:
|
||||
- ${DEVILBOX_PATH}/cfg/varnish-${VARNISH_SERVER:-6}:/etc/varnish.d
|
||||
depends_on:
|
||||
- bind
|
||||
- php
|
||||
|
Loading…
Reference in New Issue
Block a user