version: "3" services: # Image for LAMP based on Dockerfile in https://github.com/jakejarvis/docker-lamp-php5 # WARNING: Not suitable for production environments, only for testing legacy php5 application. # (Docker image supplementary files licenced under Apache 2.0) lamp-php5: image: docker.io/jakejarvis/lamp-php5:latest ports: - 80:80 - 3306:3306 volumes: - "../h-source:/app" - "../mysql:/var/lib/mysql" # Image for LAMP based on https://github.com/mattrayner/docker-lamp # (Docker image licenced under Apache 2.0) lamp-php7: image: mattrayner/lamp:latest-1804 ports: - 80:80 - 3306:3306 volumes: - "../h-source:/app" - "../mysql:/var/lib/mysql"