Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Varnish #188

Open
hysryt opened this issue Sep 25, 2021 · 1 comment
Open

Varnish #188

hysryt opened this issue Sep 25, 2021 · 1 comment

Comments

@hysryt
Copy link
Owner

hysryt commented Sep 25, 2021

No description provided.

@hysryt
Copy link
Owner Author

hysryt commented Sep 25, 2021

docker-compose.yml

version: "3"

services:
  app:
    image: php:8-apache
    ports:
      - 8080:80
    volumes:
      - ./html:/var/www/html
  
  cache:
    image: varnish:7.0
    ports:
      - 8081:80
    volumes:
      - ./default.vcl:/etc/varnish/default.vcl
    tmpfs:
      - /var/lib/varnish:exec

default.vcl

vcl 4.0;

backend default {
  .host = "app:80";
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant