Docker compose wordpress plugins
This is my docker-compose.yml so far:
wordpress: image: wordpress links: - db:mysql ports: - 8080:80 net: "bridge" dns: - 18.104.22.168 - 22.214.171.124 db: image: mysql environment: MYSQL_ROOT_PASSWORD: biersaufen
Is there a way to directly install wordpress plugins? (Directly means that i can install it via the docker-compose.yml)
One Solution collect form web for “Docker compose wordpress plugins”
Yes, you can, but not directly via the docker-compose file.
You need to use the “build” section of the docker compose and have a Dockerfile that will install the modules for you. That way when you run
docker-compose on your directory, it will first build the image with the plugins and use that image to start the stack.