---
mysql:
  image: mysql
  environment:
    MYSQL_PASSWORD: password_here
    MYSQL_USER: username_here
    MYSQL_DATABASE: database_name_here

wordpress:
  build: .
  links:
    - mysql

---
mysql:
  image: mysql
  environment:
    MYSQL_PASSWORD: password_here
    MYSQL_USER: username_here
    MYSQL_DATABASE: database_name_here
    MYSQL_ROOT_PASSWORD: root

wordpress:
  build: .
  ports:
    - "8000:80"
  links:
    - mysql

Add port forwarding and mysql root password
Add port forwarding and mysql root password
