version: '3' # docker-compose -f docker-compose.yml up -d services: nginx: image: nginx:1.25.3 container_name: nginx ports: - '443:443' - '80:80' volumes: - ./nginx/logs:/var/log/nginx - ./nginx/html:/usr/share/nginx/html - ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf - ./nginx/conf/conf.d:/etc/nginx/conf.d - ./nginx/ssl:/etc/nginx/ssl/ privileged: true restart: always