https://github.com/sendya/docker-php-nginx
Dockerized php & nginx
https://github.com/sendya/docker-php-nginx
Last synced: 3 months ago
JSON representation
Dockerized php & nginx
- Host: GitHub
- URL: https://github.com/sendya/docker-php-nginx
- Owner: sendya
- License: mit
- Created: 2023-11-22T03:48:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-10T07:16:46.000Z (over 2 years ago)
- Last Synced: 2025-03-11T04:35:35.497Z (over 1 year ago)
- Language: Dockerfile
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Dockerized PHP & Nginx
PHP(fpm): 7.4.33
Nginx: nginx/1.20.2
---
webroot: `/var/www/html/`
nginx-conf: `/etc/nginx/conf.d/` default.conf
### Build Image
```bash
$ docker buildx build --platform=linux/arm64 -t php-fpm:7.4.33 . --no-cache
```
### docker-compose
```yaml
version: "3"
services:
myweb:
image: php-fpm:7.4.33
container_name: myweb
ports:
- 8080:8080
volumes:
- ./www:/var/www/html
- ./nginx-conf:/etc/nginx/conf.d
restart: always
```