Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 9 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
{}
Expand Down Expand Up @@ -91,20 +96,23 @@ 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
ports:
- "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
Expand Down