version: '3' services: php: ports: - '80:80' container_name: my-apache-php-app volumes: - '/my/path/to/www:/var/www/html' image: 'php:7.2-apache'