version: '3' services: nginx: image: nginx:latest ports: - ${HTTP_PORT}:80 - ${HTTPS_PORT}:443 volumes: - ./docker-persist/html:/usr/share/nginx/html #Expose HTML webroot to host - ./docker-persist/nginx:/etc/nginx #Expose nging conf folder to host - ./docker-persist/log:/var/log/nginx #Expose nginx log folder to host restart: always