version: "3.7"
services:
  servicemanager:
    container_name: "vrservicemanager"
    networks:
      - servicemanager_net
    image: vrsoftbr/servicemanager:4.1.12-2
    depends_on:
      - rabbitmq
    ports:
      - "9001:9001"
      - "9000:80"
      - "13231:13231" 
    environment:
        - TZ=GMT-3
        - IP=127.0.0.1
    volumes:
      - "./data/nginx:/var/log/nginx"
      - "./:/vr"
    logging:
      driver: "json-file"
      options:
        max-file: "5"
        max-size: "100m"
    restart: always

  rabbitmq:
    container_name: "vrrabbitmq"
    networks:
      - servicemanager_net
    image: rabbitmq:3.8-management-alpine
    ports:
      - "5672:5672"
      - "15672:15672"
    environment:
      - TZ=GMT-3
      - RABBITMQ_DEFAULT_USER=vr
      - RABBITMQ_DEFAULT_PASS=vr!RbtMQ
    volumes:
      - "./data/rabbitmq:/var/lib/rabbitmq/mnesia"
    restart: always

networks:
  servicemanager_net:
