docker-compose.yaml
changeset 1511 25731d245eda
child 1513 b833d7c72ea9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker-compose.yaml	Wed Dec 11 10:17:08 2019 +0100
@@ -0,0 +1,32 @@
+{
+    "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"
+            ]
+        }
+    }
+}
+