services: rabbitmq: image: rabbitmq:3-management container_name: rabbitmq restart: unless-stopped env_file: "rabbitmq.env" depends_on: - rabbit-auth-server volumes: - lib:/var/lib/rabbitmq - ./config/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf - ./config/enabled_plugins:/etc/rabbitmq/enabled_plugins ports: - 15672:15672 - 5672:5672/tcp rabbit-auth-server: build: ./auth_backend container_name: rabbit-auth-server volumes: lib: driver: local driver_opts: type: "none" o: "bind" device: "./data"