# Quickstart Guide: Compose and Wordpress You can use Compose to easily run Wordpress in an isolated environment built with Docker containers. ## Define the project First, [Install Compose](install.md) and then download Wordpress into the current directory: $ curl https://wordpress.org/latest.tar.gz | tar -xvzf - This will create a directory called `wordpress`. If you wish, you can rename it to the name of your project. Next, inside that directory, create a `Dockerfile`, a file that defines what environment your app is going to run in. For more information on how to write Dockerfiles, see the [Docker user guide](https://docs.docker.com/userguide/dockerimages/#building-an-image-from-a-dockerfile) and the [Dockerfile reference](http://docs.docker.com/reference/builder/). In this case, your Dockerfile should be: FROM orchardup/php5 ADD . /code This tells Docker how to build an image defining a container that contains PHP and Wordpress. Next you'll create a `docker-compose.yml` file that will start your web service and a separate MySQL instance: web: build: . command: php -S 0.0.0.0:8000 -t /code ports: - "8000:8000" links: - db volumes: - .:/code db: image: orchardup/mysql environment: MYSQL_DATABASE: wordpress Two supporting files are needed to get this working - first, `wp-config.php` is the standard Wordpress config file with a single change to point the database configuration at the `db` container: