nginx-docker/docker-compose.yml

12 lines
523 B
YAML
Raw Normal View History

2024-04-02 19:05:27 +02:00
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/default.conf:/etc/nginx/conf.d/default.conf" # 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!