version: '3'

volumes:
  nodecache: {}
  redisdata: {}
  mgpassdata: {}

networks:
  metager:
    name: metager_net
    ipam:
      driver: default
      config:
        - subnet: "192.168.5.0/24"

services:
  express:
    build:
      context: ./build/pass
      target: development
    networks:
      - metager
    working_dir: /app
    volumes:
      - ./pass:/app
      - mgpassdata:/data
    ports:
      - 8085:3000
      - 9229:9229
  express_redis:
    build:
      context: ./build/redis
    networks:
      - metager
    volumes:
      - redisdata:/data
    restart: unless-stopped
