version: '3.8' services: nginx: image: nginx:alpine container_name: nginx ports: - "80:80" - "443:443" volumes: - ./html:/usr/share/nginx/html - ./conf.d:/etc/nginx/conf.d - ./logs:/var/log/nginx