nginx-docker/docker-compose.yml

14 lines
515 B
YAML
Raw Normal View History

2024-04-02 19:05:27 +02:00
version: "3.8"
services:
nginx:
restart: always
image: nginx:latest
ports:
- "80:80" # Change this if you want to use SSL or anything else.
2024-04-02 19:05:27 +02:00
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!