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+ FROM php:8.2-apache
2+ WORKDIR /var/www/html
3+ COPY . /var/www/html/
4+ RUN docker-php-ext-install mysqli pdo pdo_mysql
5+ EXPOSE 80
Original file line number Diff line number Diff line change 1+ version : ' 3.8'
2+
3+ services :
4+ php-server :
5+ build :
6+ context : .
7+ dockerfile : Dockerfile
8+
9+ image : tiwutdev/tiwut-php-server:v1
10+ container_name : tiwut-prod-app
11+
12+ restart : unless-stopped
13+
14+ ports :
15+ - " 8080:80"
16+
17+ deploy :
18+ resources :
19+ limits :
20+ cpus : ' 0.50'
21+ memory : 512M
22+ reservations :
23+ memory : 128M
24+
25+ volumes :
26+ - .:/var/www/html
27+ - php-logs:/var/log/apache2
28+
29+ environment :
30+ - APP_ENV=production
31+ - PHP_MEMORY_LIMIT=256M
32+
33+ volumes :
34+ php-logs :
Original file line number Diff line number Diff line change 1+ <?php
2+ echo "<h1>Hello from Docker!</h1> " ;
3+ phpinfo ();
4+ ?>
You can’t perform that action at this time.
0 commit comments