You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From there, you can visit `localhost:8080` in your browser and see the example.com homepage.
85
+
86
+
### Using a VCL file
87
+
88
+
If you already have a VCL file, you can directly mount it as `/etc/varnish/default.vcl`:
97
89
98
90
```console
99
91
# we need the configuration file at /etc/varnish/default.vcl,
@@ -106,9 +98,7 @@ $ docker run \
106
98
varnish
107
99
```
108
100
109
-
From there, you can visit `localhost:8080` in your browser and see the example.com homepage.
110
-
111
-
Alternatively, a simple `Dockerfile` can be used to generate a new image that includes the necessary `default.vcl` (which is a much cleaner solution than the bind mount above):
101
+
Alternatively, a simple `Dockerfile` can be used to generate a new image that includes the necessary `default.vcl`:
0 commit comments