22 lines
621 B
YAML
22 lines
621 B
YAML
services:
|
|
nginx:
|
|
image: nginx:latest
|
|
restart: unless-stopped
|
|
command: "/bin/sh -c 'while :; do sleep 8h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- ./configs/nginx/conf.d:/etc/nginx/conf.d:rw
|
|
- ./configs/certbot/letsencrypt:/etc/letsencrypt
|
|
- ./configs/certbot/www:/var/www/certbot
|
|
- ./configs/nginx/certbot:/etc/nginx/certbot:ro
|
|
- ../nextcloud/nextcloud:/var/www/html:ro
|
|
- ../myschoolproj:/var/www/myschoolproj
|
|
build: .
|
|
networks:
|
|
- net
|
|
|
|
networks:
|
|
net:
|
|
external: true
|