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:
parent
98b90b1d49
commit
05008c0b54
@ -1 +0,0 @@
|
|||||||
FROM php:8.0.3-fpm-buster
|
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user