https://github.com/matriphe/docker
Collection of Dockerfiles to build custom images used by Muhammad Zamroi (matriphe)
https://github.com/matriphe/docker
Last synced: 4 months ago
JSON representation
Collection of Dockerfiles to build custom images used by Muhammad Zamroi (matriphe)
- Host: GitHub
- URL: https://github.com/matriphe/docker
- Owner: matriphe
- License: mit
- Created: 2024-10-22T19:53:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-17T12:37:47.000Z (over 1 year ago)
- Last Synced: 2025-08-05T23:28:44.378Z (11 months ago)
- Language: Dockerfile
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker
This is a collection of `Dockerfiles` to build custom images used by Muhammad Zamroi (matriphe).
## Nginx Amplify
The Nginx Amplify is compiled from [their official repository](https://github.com/nginxinc/docker-nginx-amplify).
### Usage
```console
docker pull ghcr.io/matriphe/docker:nginx-amplify-alpine-latest
```
## PHP
The PHP fpm image that displays `phpinfo()` as `index.php` file that is useful to check if Nginx works with PHP-fpm.
```console
docker pull ghcr.io/matriphe/docker:php-fpm-info-alpine-8.3
```
### Usage
Make sure to point the `root` directory on Nginx to `/var/www/html`.
Example of Nginx config is the following:
```conf
server {
listen 80;
server_name _; # Domain name
root /var/www/html; # The location of index.php
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass php:9000; # Update this part
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
```