docker-compose.yaml
author ymh <ymh.work@gmail.com>
Wed, 29 Sep 2021 11:06:58 +0200
changeset 1543 808ef2076edc
parent 1513 b833d7c72ea9
child 1557 7c67caaafdeb
permissions -rw-r--r--
add first version of enmi21

{
    "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:8080"
            ],
            "depends_on": [
                "php-fpm"
            ]
        }
    }
}