Ctrl K
ComunidadGuías…

docker-compose-init_letsencrypt.yml

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
services:
  nginx:
    image: nginx:1.30.1
    ports:
      - "80:80"
      - "443:443"
    networks:
      - main
    environment:
      - DOMAIN=${DOMAIN}
    volumes:
      - ./nginx/locations:/etc/nginx/conf.d/locations
      - ./nginx/server_config:/etc/nginx/conf.d/server_config
      - ./nginx/server_name:/etc/nginx/conf.d/server_name
      - ./nginx/ssl_bootstrap:/etc/nginx/templates/default.conf.template
      - ./certbot/conf:/etc/nginx/ssl
      - ./certbot/data:/var/www/certbot
  certbot:
    image: certbot/certbot:latest
    command: certonly --webroot --webroot-path=/var/www/certbot --keep-until-expiring --email ${EMAIL} --agree-tos --no-eff-email -d ${DOMAIN}
    depends_on:
      - nginx
    volumes:
      - ./certbot/conf:/etc/letsencrypt
      - ./certbot/logs:/var/log/letsencrypt
      - ./certbot/data:/var/www/certbot
networks:
  main: