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.
29
+
30
+
### Using a VCL file
31
+
32
+
If you already have a VCL file, you can directly mount it as `/etc/varnish/default.vcl`:
41
33
42
34
```console
43
35
# we need the configuration file at /etc/varnish/default.vcl,
@@ -50,9 +42,7 @@ $ docker run \
50
42
%%IMAGE%%
51
43
```
52
44
53
-
From there, you can visit `localhost:8080` in your browser and see the example.com homepage.
54
-
55
-
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):
45
+
Alternatively, a simple `Dockerfile` can be used to generate a new image that includes the necessary `default.vcl`:
0 commit comments