services: redis: image: redis/redis-stack ports: - "6379:6379" volumes: - redis_data:/data restart: always networks: - back redisinsight: image: redis/redisinsight ports: - "5540:5540" restart: always volumes: - redisinsight_data:/db networks: - back php: image: windok/php-redis restart: always volumes: - ./web:/usr/share/nginx/html environment: NOM : "moguljak" PRENOM : "tom" deploy: replicas: 2 networks: - front - back nginx : image: nginx restart: always ports: - "80:80" - "443:443" volumes: - ./web:/usr/share/nginx/html - ./nginx:/etc/nginx/conf.d networks: - front networks: front: back: volumes: redis_data: redisinsight_data: