Skip to content

Commit 00d65c4

Browse files
jluckiJan Lucki
andauthored
use php 8.2 and update document root (#9)
Co-authored-by: Jan Lucki <[email protected]>
1 parent 50f05d1 commit 00d65c4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ services:
55
ports:
66
- "80:80"
77
volumes:
8-
- ./:/code
8+
- ./:/var/www/html
99
- ./docker/conf/default.conf:/etc/nginx/conf.d/default.conf
1010
php:
1111
build:
1212
context: ./docker
1313
volumes:
14-
- ./:/code
14+
- ./:/var/www/html
1515
- ./docker/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
1616
mysql:
1717
image: mysql:latest

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.1-fpm
1+
FROM php:8.2-fpm
22

33
ARG WITH_XDEBUG=true
44

docker/conf/default.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ server {
44
server_name localhost;
55
error_log /var/log/nginx/error.log;
66
access_log /var/log/nginx/access.log;
7-
root /code/public;
7+
root /var/www/html/public;
88

99
location / {
1010
try_files $uri $uri.js /index.php$is_args$args;

0 commit comments

Comments
 (0)