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 <jbarrec.tech@gmail.com>
This commit is contained in:
Joseph Barreca 2021-04-06 13:30:44 -04:00
parent 98b90b1d49
commit 05008c0b54
3 changed files with 3 additions and 4 deletions

View File

@ -1 +0,0 @@
FROM php:8.0.3-fpm-buster

View File

@ -1,13 +1,13 @@
version: "3.8" version: "3.8"
services: services:
backend: backend:
build: backend image: php:8.0.3-fpm-buster
secrets: secrets:
- db-password - db-password
depends_on: depends_on:
- db - db
volumes: volumes:
- ./src:/var/www/html # this part seems repetitive (jb) - ./backend:/var/www/html # this part seems repetitive (jb)
db: db:
image: mysql:8.0.19 image: mysql:8.0.19
command: '--default-authentication-plugin=mysql_native_password' command: '--default-authentication-plugin=mysql_native_password'
@ -26,7 +26,7 @@ services:
depends_on: depends_on:
- backend - backend
volumes: volumes:
- ./src:/var/www/html # this part seems repetitive (jb) - ./backend:/var/www/html # this part seems repetitive (jb)
volumes: volumes:
db-data: db-data:
secrets: secrets: