version: '3.8' services: nginx: image: nginx:latest container_name: nginx-local ports: - "16080:80" - "16443:443" volumes: - ./html:/usr/share/nginx/html - ./conf:/etc/nginx/conf.d - ./ssl:/etc/nginx/ssl restart: unless-stopped