docker-compose.yaml
author ymh <ymh.work@gmail.com>
Wed, 11 Dec 2019 10:17:08 +0100
changeset 1511 25731d245eda
child 1513 b833d7c72ea9
permissions -rw-r--r--
Upgrade videojs and dashjs to last version

{
    "version": "3",
    "volumes": {
        "postgres_data": {},
        "mysql_data": {}
    },
    "services": {
        "php-fpm": {
            "build": {
                "context": "./sbin/docker",
                "dockerfile": "Dockerfile"
            },
            "volumes": [
                "./web:/var/www/html/"
            ]
        },
        "nginx": {
            "image": "nginx:alpine",
            "volumes": [
                "./web:/var/www/html",
                "./sbin/docker/nginx.php-fpm.conf:/etc/nginx/nginx.conf:ro"
            ],
            "ports": [
                "8080:80"
            ],
            "depends_on": [
                "php-fpm"
            ]
        }
    }
}