From 53153a0aa660164108d715a35af4504da99c6859 Mon Sep 17 00:00:00 2001 From: steale Date: Thu, 8 Jun 2023 00:54:05 +0200 Subject: [PATCH 1/2] bug: fixed permission denied error on varnish (downgrade to 6) & mariadb --- docker-compose.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index e1a48298..8ce6a43b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,11 @@ x-environment: #XDEBUG_ENABLE: "true" HTTP_HOST: *default-url +x-user: + &default-user + # The default user under which the containers should run. Change this if you are on linux and run with another user than id `1000` + user: '1000' + volumes: uploads: {} @@ -91,13 +96,15 @@ services: lando.type: mariadb ports: - "3306" # exposes the port 3306 with a random local port, find it with `docker-compose port mariadb 3306` + + << : *default-user environment: << : *default-environment volumes: - db:/var/lib/mysql varnish: - image: uselagoon/varnish-7:latest + image: uselagoon/varnish-6:latest labels: lagoon.type: varnish lando.type: varnish @@ -105,6 +112,7 @@ services: - "8080" links: - nginx # links varnish to the nginx in this docker-compose project, or it would try to connect to any nginx running in docker + << : *default-user environment: << : *default-environment LAGOON_LOCALDEV_URL: wordpress-varnish.docker.amazee.io # generate another route for varnish From 223c3baa98158fd4cad295378ba6cc6c0d143385 Mon Sep 17 00:00:00 2001 From: steale Date: Thu, 8 Jun 2023 00:55:01 +0200 Subject: [PATCH 2/2] bug: fixed url in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d098bcc..aa3724ff 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ This repository is an example of how to use Lagoon and WordPress. It uses our lo 5. Run `docker-compose build`. 6. Run `docker-compose up -d`. 7. Run `docker-compose exec cli composer install` - this will make sure all of the dependencies have been added inside of the container. -8. You should now have a fully functional local WordPress site at [`wordpress-nginx.docker.amazee.io`](http://wordpress-nginx.docker.amazee.io)! +8. You should now have a fully functional local WordPress site at [`wordpress-base.docker.amazee.io`](http://wordpress-base.docker.amazee.io)! ## WordPress and Composer