mirror of
https://github.com/technorabilia/docker-bits
synced 2024-11-18 15:25:41 +00:00
15 lines
640 B
Bash
15 lines
640 B
Bash
# [Nginx](https://nginx.org/) is a simple webserver with php support. The config
|
|
# files reside in `/config` for easy user customization.
|
|
|
|
. ./.env
|
|
docker run -d \
|
|
--name=nginx \
|
|
-e PUID=${PUID:-1024} `# for UserID` \
|
|
-e PGID=${PGID:-100} `# for GroupID` \
|
|
-e TZ=${TZ:-Europe/Amsterdam} `# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).` \
|
|
-p 80:80 `# http` \
|
|
-p 443:443 `# https` \
|
|
-v ${BASEDIR:-/volume1/docker}/nginx/config:/config `# Contains your www content and all relevant configuration files.` \
|
|
--restart unless-stopped \
|
|
ghcr.io/linuxserver/nginx
|