version: "3.3" services: nextjs3000: build: context: . args: SSR_PORT: 3000 # پاس دادن مقدار به آرگومان Dockerfile network_mode: "host" restart: "always" nextjs3001: build: context: . args: SSR_PORT: 3001 # پاس دادن مقدار به آرگومان Dockerfile network_mode: "host" restart: "always" nextjs3002: build: context: . args: SSR_PORT: 3002 # پاس دادن مقدار به آرگومان Dockerfile network_mode: "host" restart: "always" nextjs3003: build: context: . args: SSR_PORT: 3003 # پاس دادن مقدار به آرگومان Dockerfile network_mode: "host" restart: "always" nextjs3004: build: context: . args: SSR_PORT: 3004 # پاس دادن مقدار به آرگومان Dockerfile network_mode: "host" restart: "always" nextjs3005: build: context: . args: SSR_PORT: 3005 # پاس دادن مقدار به آرگومان Dockerfile network_mode: "host" restart: "always" # nginx: # build: ./nginx # network_mode: "host" # volumes: # - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro # depends_on: # - nextjs # ports: # - "8081:80" # ports: # - "${NGINX_PORT}:80"