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 - unable to mount start mongodb in container - operation not permitted
  • How does one detect if one is running within a docker container within Python?
  • Connecting to Oracle XE running on Docker
  • Obtaining a docker image's parent images
  • How to connect to current container when starting Docker?
  • Docker registry on EC2
  • Where is the base docker image specified in Play Framework?
  • How to add an image to an organization in Docker Hub ?
  • Docker on windows - certificate error
  • Docker: MariaDB / MySQL startup fails on windows host
  • Volume sharing in Docker and Virtualbox
  • Jenkins build inside a docker container with generated reports
  • 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.