feat: 초기 도커(PHP 8.3, Nginx, MySQL) 환경 세팅

This commit is contained in:
2026-02-23 10:36:12 +09:00
commit e2477845c7
9 changed files with 201 additions and 0 deletions

17
docker/nginx/default.conf Normal file
View File

@@ -0,0 +1,17 @@
server {
listen 80;
server_name localhost;
root /var/www/html;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass app:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}

View File

@@ -0,0 +1,17 @@
server {
listen 8082;
server_name localhost;
root /var/www/html/hmac_edu;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass app:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}