docker-webserver-nginx/README.md

34 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2024-12-13 11:17:01 +00:00
# webserver-nginx
[![Build Status](https://drone.asperti.com/api/badges/paspo/docker-webserver-nginx/status.svg)](https://drone.asperti.com/paspo/docker-webserver-nginx)
Small webserver with PHP support and SFTP access
## usage
Use this `docker-compose.yaml`
```yaml
services:
web:
image: docker.asperti.com/paspo/webserver-nginx
ports:
- 8888:80
- 2222:22
volumes:
- ./www:/data/www
- ./ssh:/ssh # add authorized_keys file here
2024-12-15 09:59:53 +00:00
- ./extra_nginx.conf:/etc/nginx/custom.d/extra.conf # optional
2024-12-13 11:17:01 +00:00
environment:
2024-12-13 11:22:24 +00:00
PHP: php84 # none (default), php82, php83, php84
2024-12-15 08:49:12 +00:00
PUID: 1000 # default: 1000
PGID: 1000 # default: 1000
TZ: Etc/UTC # default: Etc/UTC
2024-12-19 07:46:39 +00:00
FPM_MAX_CHILDREN: 5 # default: 5
FPM_START_SERVERS: 1 # default: 1
FPM_MIN_SPARE_SERVERS: 1 # default: 1
FPM_MAX_SPARE_SERVERS: 3 # default: 3
2024-12-13 11:17:01 +00:00
```
2024-12-15 08:39:25 +00:00
The `/data/www` directory and its contents will be chowned to `$PUID:$PGID` and chmodded to `0755` for directories and `0644` for files at container start.