From 05008c0b54e679ddbb26eebd64c50efd11bb57c6 Mon Sep 17 00:00:00 2001 From: Joseph Barreca Date: Tue, 6 Apr 2021 13:30:44 -0400 Subject: [PATCH] Refactor directory and image location - Removed Dockerfile for php image + Added php image into docker-compose file -> Moved source for nginx/php to backend directory Signed-off-by: Joseph Barreca --- nginx-php-mysql/backend/Dockerfile | 1 - nginx-php-mysql/{src => backend}/index.php | 0 nginx-php-mysql/docker-compose.yaml | 6 +++--- 3 files changed, 3 insertions(+), 4 deletions(-) delete mode 100755 nginx-php-mysql/backend/Dockerfile rename nginx-php-mysql/{src => backend}/index.php (100%) 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: