--- a/docker-compose.yaml Thu Dec 02 13:52:58 2021 +0100
+++ b/docker-compose.yaml Mon Nov 20 18:10:58 2023 +0100
@@ -1,31 +1,23 @@
-{
- "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"
- ]
- }
- }
-}
+version: 3
+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
+
+volumes:
+ postgres_data:
+ mysql_data:
+