docker-bits/lsio/nginx/docker-compose.yaml

26 lines
685 B
YAML
Raw Normal View History

2021-04-21 00:55:42 +00:00
# [Nginx](https://nginx.org/) is a simple webserver with php support. The config
# files reside in `/config` for easy user customization.
2021-04-10 10:16:29 +00:00
---
version: "2.1"
services:
nginx:
image: ghcr.io/linuxserver/nginx
container_name: nginx
environment:
# for UserID
2022-04-02 00:45:58 +00:00
- PUID=${PUID:-1024}
# for GroupID
2021-04-10 10:16:29 +00:00
- PGID=${PGID:-100}
# Specify a timezone to use for example Europe/Amsterdam
2021-04-13 00:58:58 +00:00
- TZ=${TZ:-Europe/Amsterdam}
2021-04-10 10:16:29 +00:00
volumes:
# Contains your www content and all relevant configuration files.
- ${BASEDIR:-/volume1/docker}/nginx/config:/config
ports:
# http
- 80:80
# https
- 443:443
restart: unless-stopped