diff --git a/nginx-php-mysql/backend/Dockerfile b/nginx-php-mysql/backend/Dockerfile deleted file mode 100755 index b8b661e..0000000 --- a/nginx-php-mysql/backend/Dockerfile +++ /dev/null @@ -1 +0,0 @@ -FROM php:8.0.3-fpm-buster \ No newline at end of file diff --git a/nginx-php-mysql/src/index.php b/nginx-php-mysql/backend/index.php similarity index 100% rename from nginx-php-mysql/src/index.php rename to nginx-php-mysql/backend/index.php diff --git a/nginx-php-mysql/docker-compose.yaml b/nginx-php-mysql/docker-compose.yaml index d94581e..a87b41b 100644 --- a/nginx-php-mysql/docker-compose.yaml +++ b/nginx-php-mysql/docker-compose.yaml @@ -1,13 +1,13 @@ version: "3.8" services: backend: - build: backend + image: php:8.0.3-fpm-buster secrets: - db-password depends_on: - db volumes: - - ./src:/var/www/html # this part seems repetitive (jb) + - ./backend:/var/www/html # this part seems repetitive (jb) db: image: mysql:8.0.19 command: '--default-authentication-plugin=mysql_native_password' @@ -26,7 +26,7 @@ services: depends_on: - backend volumes: - - ./src:/var/www/html # this part seems repetitive (jb) + - ./backend:/var/www/html # this part seems repetitive (jb) volumes: db-data: secrets: