Docker compose wordpress plugins

This is my docker-compose.yml so far:

wordpress:
  image: wordpress
  links:
    - db:mysql
  ports:
    - 8080:80

  net: "bridge"
  dns:
    - 8.8.8.8
    - 4.4.4.4

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)

  • docker as service parameter
  • how to do docker-compose pip install with a proxy?
  • Is there an agreed UML diagram style for documenting or illustrating the role of (Docker) containers in a system architecture specification?
  • Docker intercontainer communication
  • Is it possible to define Docker data volume on S3?
  • How do I run Docker Swarm's integration tests?
  • Docker 'data only container' being shut down
  • docker build in run time or docker compose from images
  • Heroku docker:release: Expected response to be successful, got 422
  • docker compose- how to set name property
  • docker on Azure VM windows 10
  • Jenkins in docker, workspace location
  • 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.