nginx-docker/docker-compose.yml

13 lines
515 B
YAML

version: "3.8"
services:
nginx:
restart: always
image: nginx:latest
ports:
- "80:80" # Change this if you want to use SSL or anything else.
volumes:
- "./data/conf/nginx.conf:/etc/nginx/nginx.conf" # The nginx config.
- "./data/sites/:/etc/nginx/conf.d/" # This has the configuration for configuring sites and enabling them.
- "./data/html/:/var/www/html/" # Where the website source code resides.
- "./data/certs/:/etc/certs/" # Put your SSL certificates in here!