Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit db91cf3

Browse files
author
Lukasz D. Tulikowski
authored
Merge pull request #25 from tulik/remove-varnish
Remove Varnish
2 parents 26a7edc + ab31aed commit db91cf3

File tree

5 files changed

+0
-118
lines changed

5 files changed

+0
-118
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ script:
4040
- curl -k https://localhost
4141
- docker build -t gcr.io/$GCLOUD_PROJECT/php -t gcr.io/$GCLOUD_PROJECT/php:latest symfony
4242
- docker build -t gcr.io/$GCLOUD_PROJECT/nginx -t gcr.io/$GCLOUD_PROJECT/nginx:latest -f symfony/Dockerfile.nginx symfony
43-
- docker build -t gcr.io/$GCLOUD_PROJECT/varnish -t gcr.io/$GCLOUD_PROJECT/varnish:latest -f symfony/Dockerfile.varnish symfony
4443
- gcloud container clusters get-credentials cluster-1 --zone europe-west1-c --project $GCLOUD_PROJECT
4544
- gcloud docker -- push gcr.io/$GCLOUD_PROJECT/php
4645
- gcloud docker -- push gcr.io/$GCLOUD_PROJECT/nginx
47-
- gcloud docker -- push gcr.io/$GCLOUD_PROJECT/varnish
4846
- linux-amd64/helm del --purge symfony-4-docker-runtime-env
4947
- linux-amd64/helm install helm/symfony --namespace symfony --name symfony-4-docker-runtime-env

docker-compose.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,6 @@ services:
3232
volumes:
3333
- ./symfony/public:/srv/symfony/public:ro
3434

35-
cache-proxy:
36-
build:
37-
context: ./symfony/
38-
dockerfile: ./Dockerfile.varnish
39-
container_name: cache-proxy
40-
depends_on:
41-
- symfony
42-
# Comment out this volume in production
43-
volumes:
44-
- ./symfony/docker/varnish/conf:/etc/varnish:ro
45-
ports:
46-
- "8081:80"
47-
4835
postgres:
4936
# In production, you may want to use a managed database service
5037
image: postgres:9.6-alpine
@@ -105,11 +92,9 @@ services:
10592
container_name: h2-proxy
10693
depends_on:
10794
- symfony
108-
- cache-proxy
10995
ports:
11096
- "80:80"
11197
- "443:443"
112-
- "8443:8443"
11398

11499
volumes:
115100
db-data: {}

h2-proxy/conf.d/default.conf

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,3 @@ server {
1919
proxy_set_header X-Forwarded-Port 443;
2020
}
2121
}
22-
23-
server {
24-
listen 8443 ssl http2;
25-
listen [::]:8443 ssl http2;
26-
27-
ssl_certificate /etc/nginx/ssl/cert.crt;
28-
ssl_certificate_key /etc/nginx/ssl/cert.key;
29-
30-
location / {
31-
proxy_pass http://cache-proxy;
32-
proxy_http_version 1.1;
33-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
34-
proxy_set_header X-Forwarded-Host $host;
35-
proxy_set_header X-Forwarded-Proto $scheme;
36-
proxy_set_header X-Forwarded-Port 8444;
37-
}
38-
}

symfony/docker/varnish/conf/default.vcl

Lines changed: 0 additions & 79 deletions
This file was deleted.

symfony/docker/varnish/start.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)