20 lines
446 B
YAML
20 lines
446 B
YAML
services:
|
|
nginx:
|
|
container_name: nginx
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
TZ: Europe/Moscow
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- ./conf.d:/etc/nginx/conf.d:ro
|
|
- ./certbot/letsencrypt:/etc/letsencrypt
|
|
- ./certbot/www:/var/www/certbot
|
|
- ./renew.sh:/usr/local/bin/renew.sh:ro
|
|
|