version: '3.8' services: nginx: image: openresty/openresty:alpine container_name: data-sync-service restart: unless-stopped ports: - "5001:80" volumes: - ./nginx/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro - ./data:/data - ./web:/usr/local/openresty/nginx/html:ro networks: - sync-net mem_limit: 50m cpus: 0.2 environment: - TZ=Asia/Shanghai networks: sync-net: driver: bridge