version: "3.3"

services:
  node:
    container_name: node
    build:
      context: ./
      dockerfile: dockerfiles/Dockerfile
    command: "npm start"
    ports:
      - "5000:5000"

  redis:
    image: "redis:alpine"
    command: redis-server
    ports:
      - "6379:6379"
    volumes:
      - ./redis:/var/lib/redis
    #      - ./dockerfiles/redis/redis.conf:/usr/local/etc/redis/redis.conf
    environment:
      - REDIS_REPLICATION_MODE=master
