diff --git a/.drone.yml b/.drone.yml index 8cfa155..121cfd9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,3 +18,9 @@ pipeline: image: fpfis/php71-build commands: - php index.php + + test-docker-compose: + image: docker pull docker/compose + commands: + - docker-compose up + diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..3fb6119 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,23 @@ +version: '2' +services: + + # Define a PHP webserver + php-webserver: + # Use a PHP image with apache + image: fpfis/php56-dev + # Define settings + environment: + - XDEBUG=true + - DOCUMENT_ROOT=/app/build + # Mount a local volume in the container + volumes: + - ./:/app/build + # Share the container port with the host + ports: + - 8080:8080 + + # Define a mysql service + mysql: + image: fpfis/mysql56 + +