24 lines
596 B
YAML
24 lines
596 B
YAML
version: '3'
|
|
services:
|
|
nginx:
|
|
image: nginx:latest
|
|
container_name: nginx-reverse-proxy
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
- ./certs:/etc/letsencrypt
|
|
- ./html:/var/www/html
|
|
restart: always
|
|
|
|
certbot:
|
|
image: certbot/certbot
|
|
container_name: certbot
|
|
volumes:
|
|
- ./certs:/etc/letsencrypt
|
|
- ./html:/var/www/html
|
|
command: certonly --webroot --webroot-path=/var/www/html --email prbigoon@gmail.com --agree-tos --staging --no-eff-email -d git.evil-bird.ru
|
|
depends_on:
|
|
- nginx
|