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"
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: