version: '2' services: wordpress: image: wordpress:4.1 ports: - 80:80 depends_on: - mysql mysql: image: mysql:5.6 environment: - ENV_VAR=$ENV_VAR