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