This commit is contained in:
yangsh
2025-12-01 17:54:31 +09:00
commit 40d9e3cc9a
102 changed files with 8896 additions and 0 deletions

32
docker-compose.yml Normal file
View File

@@ -0,0 +1,32 @@
version: "3.9"
services:
web:
build: .
container_name: ci4-web
ports:
- "8800:80" # localhost:8080 -> Apache
volumes:
- ./:/var/www/html # 현재 CI4 프로젝트 전체를 컨테이너에 마운트
environment:
CI_ENVIRONMENT: development
depends_on:
- db
restart: unless-stopped
db:
image: mysql:8.0
container_name: ci4-mysql
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: ci4db
MYSQL_USER: ci4user
MYSQL_PASSWORD: ci41234
ports:
- "3308:3306" # 호스트 3308 포트로 MySQL 접속
volumes:
- ci4-db-data:/var/lib/mysql
restart: unless-stopped
volumes:
ci4-db-data: