no message

This commit is contained in:
2025-12-26 11:47:21 +09:00
parent 8bc3744b0e
commit 65d8cf7813
4 changed files with 114 additions and 40 deletions

View File

@ -1,35 +1,43 @@
# 퍼스트가든 사이트 테스트용 php-apache 이미지
- Cafe24 호스팅과 가능한 버전을 맞춰서 관리함.
- Cafe24 10G자이언트플러스 호스팅과 유사한 개발 환경 구축을 목표로 함
### docker-compose.yml
```yaml
services:
web:
image: reg.firstgarden.co.kr/php-apache:8.2.7
container_name: php-apache
ports:
- "80:80"
environment:
TZ: Asia/Seoul
PUID: 1000
PGID: 1000
APACHE_RUN_USER: www-data
APACHE_RUN_GROUP: www-data
volumes:
- ./html:/var/www/html # 소스코드 마운트
restart: unless-stopped
```
## 지원 PHP 버전
- PHP 8.2
- PHP 8.4
## 실행 방법
```bash
cp .env.example .env
docker compose up -d --build
## 접속
http://localhost
DB: localhost:3306
## PHP 버전 변경
`.env` 파일에서 `PHP_VERSION=8.4`
---
### 폴더 구조
```PowerShell
| docker-compose.yml
| README.md
+---8.2
| Dockerfile
| entrypoint.sh
|
\---8.2.7
docker-compose.yml
Dockerfile
entrypoint.sh
```bash
.
├── docker-compose.yml
├── .env
├── README.md
├── logs/
│ ├── apache/
│ ├── php/
│ └── mariadb/
├── data/
│ └── mariadb/
├── www/
│ └── (웹소스)
├── 8.2/
│ ├── Dockerfile
│ └── entrypoint.sh
└── 8.4/
├── Dockerfile
└── entrypoint.sh
```