File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # tiwut-php-server
2- Simple PHP Server
1+ # Tiwut's First PHP Docker Server
2+
3+ This is my very first custom Docker image! 🚀
4+
5+ ## Description
6+ A simple PHP Apache server environment created as a learning project. It serves a basic PHP application using Docker and Docker Compose.
7+
8+ ## Author
9+ - ** Tiwut** (tiwutdev)
10+
11+ ## Features
12+ - ** PHP 8.2-apache** base image.
13+ - ** Docker Compose** support for easy local development.
14+ - ** Auto-sync** using volumes (local changes reflect immediately in the container).
15+
16+ ## Configuration (docker-compose.yml)
17+ You can use this YAML file to start the container quickly:
18+
19+ ``` yaml
20+ version : ' 3.8'
21+
22+ services :
23+ php-server :
24+ build :
25+ context : .
26+ dockerfile : Dockerfile
27+
28+ image : tiwutdev/tiwut-php-server:v1
29+ container_name : tiwut-prod-app
30+
31+ restart : unless-stopped
32+
33+ ports :
34+ - " 8080:80"
35+
36+ deploy :
37+ resources :
38+ limits :
39+ cpus : ' 0.50'
40+ memory : 512M
41+ reservations :
42+ memory : 128M
43+
44+ volumes :
45+ - .:/var/www/html
46+ - php-logs:/var/log/apache2
47+
48+ environment :
49+ - APP_ENV=production
50+ - PHP_MEMORY_LIMIT=256M
51+
52+ volumes :
53+ php-logs :
You can’t perform that action at this time.
0 commit comments