Docker compose wordpress plugins

This is my docker-compose.yml so far:

  image: wordpress
    - db:mysql
    - 8080:80

  net: "bridge"

  image: mysql
    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)

  • Having two NIC's on a Docker image before it boots
  • Heapster fails to get container stats from Kubelet on Kubernetes cluster
  • How to link docker images to their composing layers on the disk?
  • Dealing with the issue of embedded tomcat's port numbers when scaling the web container in a Heroku-like cloud
  • Q: Docker: How to make several portranges available to ouside
  • create a web2py docker image and access it through browser
  • Build ASP.NET Core 1.1 preview4 project in Docker-image microsoft/aspnetcore-build:1.1.0-msbuild
  • Accessing my Dockerized website by its hostname
  • How do you mount sibling containers volumes started from another container?
  • Bootstraping Percona Xtradb Cluster in Docker gives the error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
  • hazelcast docker container can't run continuously
  • Force npm compiling packages using docker image
  • 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.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.