Skip to content

Commit 8b21f11

Browse files
authored
Add files via upload
1 parent fff1121 commit 8b21f11

3 files changed

Lines changed: 43 additions & 0 deletions

File tree

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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

docker-compose.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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:

index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
echo "<h1>Hello from Docker!</h1>";
3+
phpinfo();
4+
?>

0 commit comments

Comments
 (0)