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

View File

@@ -0,0 +1,16 @@
{
"name": "PHP-Nginx-MySQL Dev",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/var/www/html",
"shutdownAction": "stopCompose",
"customizations": {
"vscode": {
"extensions": [
"bmewburn.vscode-intelephense-client",
"xdebug.php-debug",
"ms-azuretools.vscode-docker"
]
}
}
}

View File

@@ -0,0 +1,35 @@
version: "3.9"
services:
app:
build:
context: ..
dockerfile: docker/php/dockerfile
volumes:
- ../src:/var/www/html
working_dir: /var/www/html
depends_on:
- db
nginx:
image: nginx:1.25-alpine
ports:
- "8081:80"
volumes:
- ../src:/var/www/html
- ../docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- app
db:
image: mysql:8.0
env_file:
- ../.env
volumes:
- db_data:/var/lib/mysql
- ../docker/mysql/initdb:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
volumes:
db_data: