version: "3.9"
services:
    web:
        build: .
        container_name: "kuadrado"
        ports:
            - "80:80"
            - "443:443"
        volumes:
            - ./public:/usr/share/nginx/html
            - ./data/certbot/conf:/etc/letsencrypt
            - ./data/certbot/www:/var/www/certbot
    certbot:
        image: certbot/certbot
        volumes:
            - ./data/certbot/conf:/etc/letsencrypt
            - ./data/certbot/www:/var/www/certbot
